Merge pull request #1 from irvinesunday/is/fix-nav-prop-descriptions

Allows capturing of NavigationProperty descriptions
This commit is contained in:
Irvine Sunday 2020-01-21 22:42:04 +03:00 committed by GitHub
commit f0cb3117c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,6 +172,7 @@ namespace Microsoft.OpenApi.OData.Generator
foreach (var property in structuredType.DeclaredNavigationProperties())
{
OpenApiSchema propertySchema = context.CreateEdmTypeSchema(property.Type);
propertySchema.Description = context.Model.GetDescriptionAnnotation(property);
properties.Add(property.Name, propertySchema);
}