Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ public static IDictionary<string, OpenApiSchema> CreateSchemas(this ODataContext
case EdmSchemaElementKind.TypeDefinition: // Type definition
{
IEdmType reference = (IEdmType)element;
var fullTypeName = reference.FullTypeName();
if(reference is IEdmComplexType &&
reference.FullTypeName().EndsWith(context.Settings.InnerErrorComplexTypeName, StringComparison.Ordinal))
fullTypeName.Split(new char[] {'.'}, StringSplitOptions.RemoveEmptyEntries)
.Last()
.Equals(context.Settings.InnerErrorComplexTypeName, StringComparison.Ordinal))
continue;

schemas.Add(reference.FullTypeName(), context.CreateSchemaTypeSchema(reference));
schemas.Add(fullTypeName, context.CreateSchemaTypeSchema(reference));
}
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<PackageId>Microsoft.OpenApi.OData</PackageId>
<SignAssembly>true</SignAssembly>
<Version>1.0.10-preview1</Version>
<Version>1.0.10-preview2</Version>
<Description>This package contains the codes you need to convert OData CSDL to Open API Document of Model.</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageTags>Microsoft OpenApi OData EDM</PackageTags>
<RepositoryUrl>https://github.com/Microsoft/OpenAPI.NET.OData</RepositoryUrl>
<PackageReleaseNotes>
- Adds path items for properties of complex type. #176, #15
- Describes errors on error response codes instead of default. #172, #165
- Describes errors on error response codes instead of default. #172, #165, #193
- Fixes a bug where reference objects are not created correctly. #171
- Adds support for enum values descriptions. #164
- Declares path parameters on path item instead of operation. #159
Expand Down