You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But quicktypeJSONSchema in the example ask me to add a type name as input, which makes things difficult, because I have to scan the JSON Schema file to collect all the type names, while quicktype's cli seem to automatically transform full JSONSchema to typescript, instead of on a single type.
So how to programmatically do transform, and make it as simple as using cli: just put in input file name, and output file name?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I used to use
json-schema-to-typescript
, but it has some problem transform large JSONSchema bcherny/json-schema-to-typescript#404I hope I can use
quicktype-core
to achieve a similar thing:But
quicktypeJSONSchema
in the example ask me to add a type name as input, which makes things difficult, because I have to scan the JSON Schema file to collect all the type names, while quicktype's cli seem to automatically transform full JSONSchema to typescript, instead of on a single type.So how to programmatically do transform, and make it as simple as using cli: just put in input file name, and output file name?
Beta Was this translation helpful? Give feedback.
All reactions