3 writes to OpenApiVersion
Microsoft.AspNetCore.OpenApi.Tests (3)
Extensions\OpenApiServiceCollectionExtensionsTests.cs (3)
155
.AddOpenApi(documentName, options => options.
OpenApiVersion
= OpenApiSpecVersion.OpenApi2_0)
156
.AddOpenApi(documentName, options => options.
OpenApiVersion
= OpenApiSpecVersion.OpenApi3_0);
179
.AddOpenApi(documentName, options => options.
OpenApiVersion
= OpenApiSpecVersion.OpenApi2_0)
4 references to OpenApiVersion
Microsoft.AspNetCore.OpenApi (2)
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (1)
52
document.Serialize(new OpenApiJsonWriter(writer), documentOptions.
OpenApiVersion
);
Services\OpenApiDocumentProvider.cs (1)
30
var resolvedOpenApiVersion = namedOption.
OpenApiVersion
;
Microsoft.AspNetCore.OpenApi.Tests (2)
Extensions\OpenApiServiceCollectionExtensionsTests.cs (2)
167
Assert.Equal(OpenApiSpecVersion.OpenApi3_0, namedOption.
OpenApiVersion
);
190
Assert.Equal(OpenApiSpecVersion.OpenApi2_0, namedOption.
OpenApiVersion
);