@kmudrick/io-ts-openapi
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@kmudrick/io-ts-openapi", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "main": "./dist/index.js", | ||
"prepare": "npm run build", | ||
"version": "npm run build && git add -A dist", | ||
"version": "npm run build", | ||
"postversion": "git push && git push --tags" | ||
@@ -24,0 +24,0 @@ }, |
# io-ts-openapi | ||
> Generates io-ts codecs from the models of an OpenAPI Spec | ||
> Generates typescript io-ts codecs from the models of an OpenAPI Spec | ||
## Background | ||
[io-ts](https://github.com/gcanti/io-ts/blob/master/index.md) is a fantastic Typescript library that uses **_parser combinators_** for building static types and typed runtime codecs that can be used for validation (type guards), encoding, and decoding. | ||
This project uses [io-ts-codegen](https://gcanti.github.io/io-ts-codegen/) to generate these types and codecs from the models of an openapi document. | ||
Future enhancements will target support for refined types and alternate implementations (like Js-Joda for Date/Time types). | ||
## Usage | ||
@@ -6,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35698
78