Closed fwkoch closed 2 years ago
This mostly uses json-schema-to-typescript to generate typescript types. It requires a few changes to the json schema files - particularly nesting all properties under allOf key, so:
allOf
... "properties": {...}, "allOf": [ { "$ref": ...} ] ...
becomes:
... "allOf": [ { "properties": {...} }, { "$ref": ...} ] ...
Functionally, this does not change the json schema at all, but the autogeneration works better!
This mostly uses json-schema-to-typescript to generate typescript types. It requires a few changes to the json schema files - particularly nesting all properties under
allOf
key, so:becomes:
Functionally, this does not change the json schema at all, but the autogeneration works better!