Skip to content

feat: General availability of version 2 with support for OpenAPI 3.1!!! 🎉🎉🎉 #2431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"include-component-in-tag": false,
"include-v-in-tag": true,
"draft": false,
"prerelease": true,
"versioning": "prerelease",
"prerelease-type": "preview",
"packages": {
".": {
"package-name": "Microsoft.OpenApi",
Expand Down
32 changes: 15 additions & 17 deletions src/Microsoft.OpenApi/OpenApiSpecVersion.cs
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

namespace Microsoft.OpenApi
namespace Microsoft.OpenApi;
/// <summary>
/// Represents versions of OpenAPI specification.
/// </summary>
public enum OpenApiSpecVersion
{
/// <summary>
/// Represents versions of OpenAPI specification.
/// Represents OpenAPI V2.0 spec
/// </summary>
public enum OpenApiSpecVersion
{
/// <summary>
/// Represents OpenAPI V2.0 spec
/// </summary>
OpenApi2_0,
OpenApi2_0,

/// <summary>
/// Represents all patches of OpenAPI V3.0 spec (e.g. 3.0.0, 3.0.1)
/// </summary>
OpenApi3_0,
/// <summary>
/// Represents all patches of OpenAPI V3.0 spec (e.g. 3.0.0, 3.0.1)
/// </summary>
OpenApi3_0,

/// <summary>
/// Represents OpenAPI V3.1 spec
/// </summary>
OpenApi3_1
/// <summary>
/// Represents OpenAPI V3.1 spec
/// </summary>
OpenApi3_1

}
}
Loading