Set IsRequired on ApiDescriptions for endpoints (#35233)
* Set isRequired on ApiDescriptions for endpoints - Use the same logic we have in RequestDelegateFactory.Create to determine if a method parameter is required or not. We then set the IsRequired property on the ApiParameterDesciption.
显示
- src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs 17 个添加, 11 个删除...ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs
- src/Mvc/Mvc.ApiExplorer/test/EndpointMetadataApiDescriptionProviderTest.cs 65 个添加, 12 个删除...plorer/test/EndpointMetadataApiDescriptionProviderTest.cs
- src/Mvc/Mvc.ApiExplorer/test/Microsoft.AspNetCore.Mvc.ApiExplorer.Test.csproj 1 个添加, 0 个删除...rer/test/Microsoft.AspNetCore.Mvc.ApiExplorer.Test.csproj
想要评论请 注册 或 登录