JsonToKotlinClass icon indicating copy to clipboard operation
JsonToKotlinClass copied to clipboard

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

Open KodyFernandes opened this issue 1 year ago • 1 comments

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.

KodyFernandes avatar Feb 15 '24 09:02 KodyFernandes

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

wuseal avatar Feb 16 '24 06:02 wuseal