Skip to content

GitbookIO/openapi-static-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openapi-static-validator

CLI to compile an OpenAPI specification as JavaScript validation file, optimized for performances.

Installation

npm install openapi-static-validator -g 

Usage

openapi-static-validator spec.json > validate.js 

TODOs

  • in: header and in: cookie parameters
  • validation of type: integer, not just as number

Development

To publish the package:

  • Change version in package.json
  • Commit the change and tag it
  • Run npm publish

About

Statically compile an OpenAPI spec into a JS validation function

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •