4 implementations of IsOptional
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\AcceptsMetadata.cs (1)
43public bool IsOptional { get; }
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2906public bool IsOptional => false;
Microsoft.AspNetCore.Mvc.Core (1)
ConsumesAttribute.cs (1)
95public bool IsOptional { get; set; }
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
1127bool IAcceptsMetadata.IsOptional => false;
3 references to IsOptional
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
EndpointMetadataApiDescriptionProvider.cs (1)
142var isOptional = acceptsMetadata.IsOptional;
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
286Required = !acceptsMetadata.IsOptional,
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
691Assert.False(endpointMetadata!.IsOptional);