JsonToKotlinClass
JsonToKotlinClass copied to clipboard
How to generate kotlin data classes from a json schema rather than a json data file?
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.
The plugin can auto determine the input is JSON or jsonschema by default depends on the content format