CLI to compile an OpenAPI specification as JavaScript validation file, optimized for performances.
npm install openapi-static-validator -g
openapi-static-validator spec.json > validate.js
- Parameters:
- in
cookie
- in
header
- in
query
- in
- JSONSchema
integer
- no float
To publish the package:
- Change version in
package.json
- Commit the change and tag it
- Run
npm publish