7 instantiations of ApiParameterDescription
Microsoft.AspNetCore.Grpc.Swagger (3)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (3)
115apiDescription.ParameterDescriptions.Add(new ApiParameterDescription 137apiDescription.ParameterDescriptions.Add(new ApiParameterDescription 157apiDescription.ParameterDescriptions.Add(new ApiParameterDescription
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
DefaultApiDescriptionProvider.cs (2)
292context.Results.Add(new ApiParameterDescription() 674return new ApiParameterDescription()
EndpointMetadataApiDescriptionProvider.cs (2)
144var parameterDescription = new ApiParameterDescription 189return new ApiParameterDescription
53 references to ApiParameterDescription
Microsoft.AspNetCore.Mvc.Abstractions (6)
ApiExplorer\ApiDescription.cs (3)
32/// Gets a list of <see cref="ApiParameterDescription"/> for this api. 34public IList<ApiParameterDescription> ParameterDescriptions { get; } = new List<ApiParameterDescription>();
ApiExplorer\ApiParameterRouteInfo.cs (3)
9/// A metadata description of routing information for an <see cref="ApiParameterDescription"/>. 18/// <see cref="ApiParameterDescription.Source"/> for the data source considered. 35/// <see cref="ApiParameterDescription.Source"/> then the value may also come from the
Microsoft.AspNetCore.Mvc.ApiExplorer (13)
ApiParameterContext.cs (2)
21Results = new List<ApiParameterDescription>(); 28public IList<ApiParameterDescription> Results { get; }
DefaultApiDescriptionProvider.cs (7)
117foreach (var parameter in GetParameters(parameterContext)) 137foreach (var parameter in apiDescription.ParameterDescriptions) 166private IList<ApiParameterDescription> GetParameters(ApiParameterContext context) 252var parameter = context.Results[i]; 303foreach (var parameter in context.Results) 343foreach (var parameter in context.Results) 669private ApiParameterDescription CreateResult(
EndpointMetadataApiDescriptionProvider.cs (3)
121var parameterDescription = CreateApiParameterDescription(parameter, routeEndpoint, disableInferredBody); 144var parameterDescription = new ApiParameterDescription 172private ApiParameterDescription? CreateApiParameterDescription(IParameterBindingMetadata parameter, RouteEndpoint routeEndpoint, bool disableInferredBody)
Properties\AssemblyInfo.cs (1)
9[assembly: TypeForwardedTo(typeof(Microsoft.AspNetCore.Mvc.ApiExplorer.ApiParameterDescription))]
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonPatchOperationsArrayProvider.cs (1)
42foreach (var parameterDescription in result.ParameterDescriptions)
Microsoft.AspNetCore.OpenApi (33)
Extensions\ApiDescriptionExtensions.cs (7)
104/// Determines if the given <see cref="ApiParameterDescription" /> is a request body parameter. 106/// <param name="apiParameterDescription">The <see cref="ApiParameterDescription"/> to check. </param> 108public static bool IsRequestBodyParameter(this ApiParameterDescription apiParameterDescription) => 117/// <param name="formParameters">A list of <see cref="ApiParameterDescription"/> associated with the form parameters.</param> 119public static bool TryGetFormParameters(this ApiDescription apiDescription, out IEnumerable<ApiParameterDescription> formParameters) 129/// <param name="bodyParameter">The <see cref="ApiParameterDescription"/> associated with the body parameter.</param> 131public static bool TryGetBodyParameter(this ApiDescription apiDescription, [NotNullWhen(true)] out ApiParameterDescription? bodyParameter)
Extensions\JsonNodeSchemaExtensions.cs (2)
304/// <param name="parameterDescription">The <see cref="ApiParameterDescription"/> associated with the <see paramref="schema"/>.</param> 306internal static void ApplyParameterInfo(this JsonNode schema, ApiParameterDescription parameterDescription, JsonTypeInfo? jsonTypeInfo)
Extensions\TypeExtensions.cs (1)
75public static bool ShouldApplyNullableRequestSchema(this ApiParameterDescription apiParameterDescription)
Services\OpenApiDocumentService.cs (12)
494foreach (var parameter in description.ParameterDescriptions) 522static bool ShouldIgnoreParameter(ApiParameterDescription parameter) 541private static bool IsRequired(ApiParameterDescription parameter) 551private static string? GetParameterDescriptionFromAttribute(ApiParameterDescription parameter) 571if (description.TryGetBodyParameter(out var bodyParameter)) 589IEnumerable<ApiParameterDescription> formParameters, 631var description = parameter.Single(); 719foreach (var description in parameter) 728foreach (var description in parameter) 752ApiParameterDescription bodyParameter, 807/// This method will also check if no target type was resolved from the <see cref="ApiParameterDescription"/> 811private static Type GetTargetType(ApiDescription description, ApiParameterDescription parameter)
Services\Schemas\OpenApiSchemaService.cs (3)
235internal async Task<OpenApiSchema> GetOrCreateUnresolvedSchemaAsync(OpenApiDocument? document, Type type, IServiceProvider scopedServiceProvider, IOpenApiSchemaTransformer[] schemaTransformers, ApiParameterDescription? parameterDescription = null, CancellationToken cancellationToken = default) 251internal async Task<IOpenApiSchema> GetOrCreateSchemaAsync(OpenApiDocument document, Type type, IServiceProvider scopedServiceProvider, IOpenApiSchemaTransformer[] schemaTransformers, ApiParameterDescription? parameterDescription = null, CancellationToken cancellationToken = default) 423internal async Task ApplySchemaTransformersAsync(OpenApiDocument? document, IOpenApiSchema schema, Type type, IServiceProvider scopedServiceProvider, IOpenApiSchemaTransformer[] schemaTransformers, ApiParameterDescription? parameterDescription = null, CancellationToken cancellationToken = default)
Transformers\OpenApiDocumentTransformerContext.cs (2)
83/// will also be augmented with the <see cref="ApiParameterDescription"/> information, such as 90public Task<OpenApiSchema> GetOrCreateSchemaAsync(Type type, ApiParameterDescription? parameterDescription = null, CancellationToken cancellationToken = default)
Transformers\OpenApiOperationTransformerContext.cs (2)
40/// augmented with the <see cref="ApiParameterDescription"/> information. 46public Task<OpenApiSchema> GetOrCreateSchemaAsync(Type type, ApiParameterDescription? parameterDescription = null, CancellationToken cancellationToken = default)
Transformers\OpenApiSchemaTransformerContext.cs (4)
24/// Gets the <see cref="ApiParameterDescription"/> associated with the target schema. 27public required ApiParameterDescription? ParameterDescription { get; init; } 64/// augmented with the <see cref="ApiParameterDescription"/> information. 70public Task<OpenApiSchema> GetOrCreateSchemaAsync(Type type, ApiParameterDescription? parameterDescription = null, CancellationToken cancellationToken = default)