31 references to OpenApiConstants
Microsoft.AspNetCore.OpenApi (31)
Comparers\OpenApiSchemaComparer.cs (2)
82if (x.Annotations.TryGetValue(OpenApiConstants.SchemaId, out var xSchemaId) 83&& y.Annotations.TryGetValue(OpenApiConstants.SchemaId, out var ySchemaId))
Extensions\JsonNodeSchemaExtensions.cs (3)
197schema[OpenApiConstants.SchemaId] = createSchemaReferenceId(context.TypeInfo); 402schema[OpenApiConstants.SchemaId] = schemaReferenceId; 408schema[OpenApiConstants.SchemaId] = "Base";
Extensions\JsonTypeInfoExtensions.cs (1)
57if (isTopLevel && OpenApiConstants.PrimitiveTypes.Contains(underlyingType ?? type))
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (1)
28public static IEndpointConventionBuilder MapOpenApi(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern = OpenApiConstants.DefaultOpenApiRoute)
Extensions\OpenApiServiceCollectionExtensions.cs (2)
92=> services.AddOpenApi(OpenApiConstants.DefaultDocumentName, configureOptions); 107=> services.AddOpenApi(OpenApiConstants.DefaultDocumentName);
Schemas\OpenApiJsonSchema.Helpers.cs (3)
10using OpenApiConstants = Microsoft.AspNetCore.OpenApi.OpenApiConstants; 313case OpenApiConstants.SchemaId: 316schema.Annotations.Add(OpenApiConstants.SchemaId, reader.GetString());
Services\OpenApiDocumentService.cs (6)
157for (var i = 0; i < OpenApiConstants.OperationTypes.Length; i++) 159var operationType = OpenApiConstants.OperationTypes[i]; 165if (operation.Annotations.TryGetValue(OpenApiConstants.DescriptionId, out var descriptionId) && 191Version = OpenApiConstants.DefaultOpenApiVersion 247operation.Annotations.Add(OpenApiConstants.DescriptionId, description.ActionDescriptor.Id); 344? OpenApiConstants.DefaultOpenApiResponseKey
Services\OpenApiOptions.cs (1)
45public string DocumentName { get; internal set; } = OpenApiConstants.DefaultDocumentName;
Services\Schemas\OpenApiSchemaService.cs (2)
70[OpenApiConstants.SchemaId] = "IFormFile" 82[OpenApiConstants.SchemaId] = "IFormFile"
Services\Schemas\OpenApiSchemaStore.cs (7)
25[OpenApiConstants.SchemaId] = "IFormFile" 34[OpenApiConstants.SchemaId] = "IFormFile" 36[OpenApiConstants.SchemaId] = "IFormFileCollection" 42[OpenApiConstants.SchemaId] = "Stream" 48[OpenApiConstants.SchemaId] = "PipeReader" 118var baseTypeSchemaId = schema.Annotations is not null && schema.Annotations.TryGetValue(OpenApiConstants.SchemaId, out var schemaId) 217if (schema.Annotations?.TryGetValue(OpenApiConstants.SchemaId, out var referenceIdObject) == true
Transformers\Implementations\OpenApiSchemaReferenceTransformer.cs (3)
42for (var i = 0; i < OpenApiConstants.OperationTypes.Length; i++) 44var operationType = OpenApiConstants.OperationTypes[i]; 110&& schema.Annotations.TryGetValue(OpenApiConstants.SchemaId, out var schemaId))