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

How to generate kotlin data classes from a json schema rather than a json data file? #423

Open
KodyFernandes opened this issue Feb 15, 2024 · 1 comment

Comments

@KodyFernandes
Copy link

How does one generate kotlin data classes from a json schema rather than a json data file?
Is there a checkbox I'm missing to specify that the provided json is a schema rather than data?
I see this feature mentioned in the README but when passing a json schema file to the plugin it treats the schema file like normal json data.
The plugin generates schema specific fields (id, type, title, description, etc.) in the kotlin classes rather than the fields specified in the schema properties fields, etc.

@wuseal
Copy link
Owner

wuseal commented Feb 16, 2024

The plugin can auto determine the input is JSON or jsonschema by default depends on the content format

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

2 participants