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

invalid OpenAPI specification should retains the Json schema validator errors #349

Open
LasneF opened this issue Nov 7, 2024 · 0 comments

Comments

@LasneF
Copy link
Contributor

LasneF commented Nov 7, 2024

given the doctor

when i set a valid Json but invalid API spect
i got
unable to parse OpenAPI specification: The requested specification cannot be parsed as an OpenAPI Spec. vaccum cannot read the file: unable to parse specification: yaml: control characters are not allowed

in fact it could be interesting to distinguiish the 2 use case
invalid JSON / YAML file ( sue as mention to wrong char, or not closed brackets and so on

vs an issue due to the fact that the OAS does not comply with the OAS schema

in both case it would be interesting to retains the error of the underlying ( parser , or json schema validator) to be able to correct

in my case
i was using such
license:
name: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
identifier: CC-BY-NC-SA-4.0
url: https://toto.toata

would be interesting to have the schema validator exception that would have mentionned that the 2 fields are exclusive

notice here is basic , could be more complex / real , topic being to have the infra to store what parser / validator generate

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

No branches or pull requests

1 participant