Skip to content
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

Detect static file format when parsing #2060

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

Azquelt
Copy link
Contributor

@Azquelt Azquelt commented Nov 8, 2024

Ensure that an openapi.json file is parsed as JSON, rather than as YAML.

This still needs a test adding.

Fixes #2059

Ensure that an openapi.json file is parsed as JSON, rather than as YAML.
@Azquelt Azquelt force-pushed the static-file-format branch 2 times, most recently from f4a68be to 82d6039 Compare November 8, 2024 13:14
Test we correctly load a JSON static file. This test will fail if we try
to parse the JSON as YAML.
@Azquelt Azquelt force-pushed the static-file-format branch from 82d6039 to e642544 Compare November 8, 2024 13:30
@Azquelt
Copy link
Contributor Author

Azquelt commented Nov 8, 2024

Ok, I think I'm happy with it. This is ready to be merged once it's built and reviewed.

Copy link

sonarcloud bot commented Nov 8, 2024

Copy link
Member

@MikeEdgar MikeEdgar left a comment

Choose a reason for hiding this comment

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

Thanks @Azquelt

@MikeEdgar MikeEdgar added this to the 4.0.2 milestone Nov 8, 2024
@MikeEdgar MikeEdgar merged commit 1905b55 into smallrye:main Nov 8, 2024
6 checks passed
@Azquelt Azquelt deleted the static-file-format branch November 8, 2024 14:03
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.

Static OpenAPI files parsed as YAML, regardless of extension
2 participants