suretype
validax
suretype | validax | |
---|---|---|
1 | 4 | |
493 | 4 | |
- | - | |
3.3 | 0.0 | |
10 months ago | over 1 year ago | |
TypeScript | TypeScript | |
- | 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.
suretype
-
How do you "stitch & glue" types for all your needs?
The class-validator / class-transform looks really nice for formatting/validation but there is also joi. suretype is attractive since theoretically typeconv could generate jsonSchema for json-schema-faker and Open API docs.
validax
- validax : A clean way to validate JSON schema in Typescript
- https://np.reddit.com/r/typescript/comments/ni1cv6/dto_of_nested_object/gz0ti4j/
-
dto of nested Object
userInput({ animalData: [ { id: 1, animal: 'dog', weight: 15.4 }, { id: 2, animal: 'cat', weight: 5.4 }, ], req: [ 3, 4, 56, 44, 3, 2 ] }); ``` https://github.com/a179346/validax
What are some alternatives?
class-validator - Decorator-based property validation for classes.
atomic-release - Automated releases using the command pattern 📦
typeconv - Convert between JSON Schema, TypeScript, GraphQL, Open API and SureType
ty - Validate untyped data and return well typed result.
JSON-Schema Faker - JSON-Schema + fake data generators
json-schema-rules-engine - A highly configurable and dynamic rules engine based on JSON Schema
class-transformer - Decorator-based transformation, serialization, and deserialization between objects and classes.
lodash-patterns - Small pattern matching tool using lodash
joi - The most powerful data validation library for JS [Moved to: https://github.com/hapijs/joi]
marshal.ts - A new full-featured and high-performance TypeScript framework
JSONForms - Customizable JSON Schema-based forms with React, Angular and Vue support out of the box.
Cimi - 一款全自动发布NPM包的工具