The Typesafe REST API Specification (TyRAS) is a family of libraries used to enable seamless development of Backend and/or Frontend which communicate via HTTP protocol. The protocol specification is checked both at compile-time and run-time to verify that communication indeed adhers to the protocol. This all is done in such way that it does not make development tedious or boring, but instead robust and fun!
This particular repository contains related libraries related to using TyRAS with Zod
data validation library:
- data folder contains
Zod
-specific library@ty-ras/data-zod
commonly used by both frontend and backend, - data-backend folder contains
Zod
-specific library@ty-ras/data-backend-zod
used by backend, - state folder contains
io-ts
-specific library@ty-ras/state-zod
used by backend - data-frontend folder contains
Zod
-specific library@ty-ras/data-frontend-zod
used by frontend, and - metadata-jsonchema folder contains
Zod
-specific library@ty-ras/metadata-jsonschema-zod
used to transformZod
validators into JSON schema objects. It is typically used by backend, but it is not restricted to that.