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)
54document.Serialize(new OpenApiYamlWriter(writer), documentOptions.OpenApiVersion); 59document.Serialize(new OpenApiJsonWriter(writer), documentOptions.OpenApiVersion);
Services\OpenApiDocumentProvider.cs (1)
30var resolvedOpenApiVersion = namedOption.OpenApiVersion;
Microsoft.AspNetCore.OpenApi.Tests (2)
Extensions\OpenApiServiceCollectionExtensionsTests.cs (2)
167Assert.Equal(OpenApiSpecVersion.OpenApi3_0, namedOption.OpenApiVersion); 190Assert.Equal(OpenApiSpecVersion.OpenApi2_0, namedOption.OpenApiVersion);