31 references to OpenApiConstants
Microsoft.AspNetCore.OpenApi (31)
Comparers\OpenApiSchemaComparer.cs (2)
82
if (x.Annotations.TryGetValue(
OpenApiConstants
.SchemaId, out var xSchemaId)
83
&& y.Annotations.TryGetValue(
OpenApiConstants
.SchemaId, out var ySchemaId))
Extensions\JsonNodeSchemaExtensions.cs (3)
197
schema[
OpenApiConstants
.SchemaId] = createSchemaReferenceId(context.TypeInfo);
402
schema[
OpenApiConstants
.SchemaId] = schemaReferenceId;
408
schema[
OpenApiConstants
.SchemaId] = "Base";
Extensions\JsonTypeInfoExtensions.cs (1)
57
if (isTopLevel &&
OpenApiConstants
.PrimitiveTypes.Contains(underlyingType ?? type))
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (1)
28
public 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)
10
using OpenApiConstants = Microsoft.AspNetCore.OpenApi.
OpenApiConstants
;
313
case
OpenApiConstants
.SchemaId:
316
schema.Annotations.Add(
OpenApiConstants
.SchemaId, reader.GetString());
Services\OpenApiDocumentService.cs (6)
157
for (var i = 0; i <
OpenApiConstants
.OperationTypes.Length; i++)
159
var operationType =
OpenApiConstants
.OperationTypes[i];
165
if (operation.Annotations.TryGetValue(
OpenApiConstants
.DescriptionId, out var descriptionId) &&
191
Version =
OpenApiConstants
.DefaultOpenApiVersion
247
operation.Annotations.Add(
OpenApiConstants
.DescriptionId, description.ActionDescriptor.Id);
344
?
OpenApiConstants
.DefaultOpenApiResponseKey
Services\OpenApiOptions.cs (1)
45
public 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"
118
var baseTypeSchemaId = schema.Annotations is not null && schema.Annotations.TryGetValue(
OpenApiConstants
.SchemaId, out var schemaId)
217
if (schema.Annotations?.TryGetValue(
OpenApiConstants
.SchemaId, out var referenceIdObject) == true
Transformers\Implementations\OpenApiSchemaReferenceTransformer.cs (3)
42
for (var i = 0; i <
OpenApiConstants
.OperationTypes.Length; i++)
44
var operationType =
OpenApiConstants
.OperationTypes[i];
110
&& schema.Annotations.TryGetValue(
OpenApiConstants
.SchemaId, out var schemaId))