Closed zijam closed 1 year ago
Hello @zijam,
The short answer is no.
The long answer is that it would rather work the other way around: It would be nice to import a schema from a .json
file and infer the type of valid data regarding this schema.
For the moment, it is not possible, but I have high hopes that it will be one day as there is an upvoted TS issue for that. See the FAQ:
Hi
Is it possible to export schema in typescript to json file as JSON Schema.
Example would like to export
dogSchema
to json file as JSON Schema format, to be used in another programming language.