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
-
in: header
andin: cookie
parameters - validation of
type: integer
, not just asnumber
To publish the package:
- Change version in
package.json
- Commit the change and tag it
- Run
npm publish