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)
5 references to OpenApiVersion
Microsoft.AspNetCore.OpenApi (3)
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (2)
54
document.Serialize(new OpenApiYamlWriter(writer), documentOptions.
OpenApiVersion
);
59
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
);