3 ms·
We generate JSON Schema from our TypeScript interfaces, then use that to validate data at relevant points in the application. Best of both worlds, assuming the
by bradstewart 6y ago
We generate JSON Schema from our TypeScript interfaces, then use that to validate data at relevant points in the application. Best of both worlds, assuming the type definitions are relatively straightforward.
- jfengel 6y agoWhat do you use for that? I looked into it, and none of the alternatives sat well with me. They all felt like impositions on the build process that would make debugging harder.
- bradstewart 6y agohttps://github.com/YousefED/typescript-json-schema https://github.com/YousefED/typescript-json-schema
- jfengel 6y agoThank you