2 writes to IsOptional
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (1)
359
IsOptional
= routeParameter.IsOptional || routeParameter.DefaultValue != null,
EndpointMetadataApiDescriptionProvider.cs (1)
244
IsOptional
= isOptional
7 references to IsOptional
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
79
IsOptional = parameter.RouteInfo.
IsOptional
,
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DefaultApiDescriptionProvider.cs (2)
260
!parameter.RouteInfo.
IsOptional
)
318
if (parameter.Source == BindingSource.Path && parameter.RouteInfo != null && !parameter.RouteInfo.
IsOptional
)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
DefaultApiDescriptionProviderTest.cs (3)
186
Assert.Equal(isOptional, parameter.RouteInfo.
IsOptional
);
232
Assert.Equal(isOptional, parameter.RouteInfo.
IsOptional
);
393
Assert.Equal(expectedOptional, parameter.RouteInfo.
IsOptional
);
EndpointMetadataApiDescriptionProviderTest.cs (1)
1393
Assert.True(parameter.RouteInfo.
IsOptional
);