Allows capturing of NavigationProperty descriptions

This commit is contained in:
Irvine Sunday 2020-01-21 22:38:40 +03:00
parent 6676093a3c
commit edfeeb38aa

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);
}