typescript-json-validator
openapi-cop
typescript-json-validator | openapi-cop | |
---|---|---|
3 | 1 | |
227 | 370 | |
- | 0.0% | |
0.0 | 0.0 | |
10 months ago | 13 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
typescript-json-validator
- (title: string)
-
Testing in production: using JSON Schema for 3rd party API response validation
I used https://github.com/ForbesLindesay/typescript-json-validator for a service I built recently. It parses TS types and turns them into a validator function - seems to work very well so far.
Thereโs a conversion of the typ to JSON schema under the hood.
-
I squeezed every brain cell to create this library
I just started using https://github.com/ForbesLindesay/typescript-json-validator.
openapi-cop
-
Testing in production: using JSON Schema for 3rd party API response validation
Json schema validation is cpu expensive in nodejs, so you do not want it in production for every request. We made a proxy [1] that only allows requests that are conform to the swagger json which is easy to hook between frontend and backend in dev-mode
[1] https://github.com/EXXETA/openapi-cop
What are some alternatives?
runtypes - Runtime validation for static types
Superstruct - A simple and composable way to validate data in JavaScript (and TypeScript).
ts-json-schema-generator - Generate JSON schema from your Typescript sources
typebox - Json Schema Type Builder with Static Type Resolution for TypeScript
schema - FrontAid CMS Schema
portman - Port OpenAPI Specs to Postman Collections, inject test suite and run via Newman ๐จ๐ฝโ๐
Recordari - Recordari is a type and structure validation tool for configuration files
iglu-central - Contains all JSON Schemas, Avros and Thrifts for Iglu Central
io-ts - Runtime type system for IO decoding/encoding