An Azure service that provides a hybrid, multi-cloud management platform for APIs.
We are in the same position. We have bumped to .NET 10 and attempting to be good and keep current with our packages but are unable to publish to APIM. May you please provide a roadmap for when APIM will support publishing of Open API 3.1 schema?
In the meantime, should anyone else stumble over this, you can use the following options to stay with the latest package but specify the schema version produced:
Via DI registration which will only affect the document served up at runtime:
builder.Services.AddOpenApi(options =>
{
options.OpenApiVersion = Microsoft.OpenApi.OpenApiSpecVersion.OpenApi3_0;
});
Via csproj which will affect the documents generated at build time if you are doing so:
<OpenApiGenerateDocumentsOptions>--openapi-version OpenApi3_0</OpenApiGenerateDocumentsOptions>