3 ms·
Because json-schema is language agnostic. You can have a schema that can be shared between servers/clients with different languages. If you want to do it the Ty
by thangngoc89 9y ago
Because json-schema is language agnostic. You can have a schema that can be shared between servers/clients with different languages. If you want to do it the TypeScript way, then you can generate the types from json-schema (probably via an automated tool)
- legulere 9y agojson is also based on javascript, but language agnostic. You could also specify a subset of typescript, just like json is a subset of javascript.