Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allow hidi to transform an OpenAPI 3.1 document#1854

Merged
MaggieKimani1 merged 2 commits intorelease/2.0.0microsoft/OpenAPI.NET:release/2.0.0from
mk/allow-hidi-to-emit-31microsoft/OpenAPI.NET:mk/allow-hidi-to-emit-31Copy head branch name to clipboard
Oct 3, 2024
Merged

Allow hidi to transform an OpenAPI 3.1 document#1854
MaggieKimani1 merged 2 commits intorelease/2.0.0microsoft/OpenAPI.NET:release/2.0.0from
mk/allow-hidi-to-emit-31microsoft/OpenAPI.NET:mk/allow-hidi-to-emit-31Copy head branch name to clipboard

Conversation

@MaggieKimani1
Copy link
Contributor

Fixes #1852

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
53.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@MaggieKimani1 MaggieKimani1 merged commit 7261ad9 into release/2.0.0 Oct 3, 2024
@MaggieKimani1 MaggieKimani1 deleted the mk/allow-hidi-to-emit-31 branch October 3, 2024 08:18
src/Microsoft.OpenApi.Hidi/OpenApiService.cs Show resolved Hide resolved
{
return OpenApiSpecVersion.OpenApi2_0;
}
throw new InvalidOperationException("Invalid version format. Please provide a valid OpenAPI version (e.g., 2.0, 3.0, 3.1).");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add another check like the previous one to validate that the major version is between 2 and 3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.