-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Nothing happens, unable to generate from OpenAPI JSON Schema #1412
Comments
Hi @ruckc I'm pretty sure it's due to L77: Running plugin with L77 removed triggers generation of several java files. |
So no way to consume unaltered Json schema files then? |
Hi, I have a similar problem and the plugin does not state that there is any problem with the schema files. How am I supposed to know what is wrong with my JSON files, if the plugin just finishes with a success? Thank you. |
It's possible to have a JSON schema with no meaningful rules or types to generate. This means the plugin has done its work but there is nothing to do. Until recent versions, the JSON schema spec explicitly mentioned that the presence of |
Yes, this has been changed since version 2019-09. Versions below (e.g. draft-0[1-7]) has this explicit restriction |
It looks like this PR might fix this issue for swagger/OAS2? #1523 |
I am trying to leverage the OpenAPI JSON Schema, to validate some user provided OpenAPI definitions. When trying to use the maven-plugin or the jsonschema2pojo website, I get no results.
JSON Schema:
https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json
The text was updated successfully, but these errors were encountered: