le-validator2

original https://www.npmjs.com/package/le-validator [![npm](https://img.shields.io/npm/v/le-validator.svg)](https://www.npmjs.com/package/le-validator) [![downloads](https://img.shields.io/npm/dt/le-validator.svg)](https://www.npmjs.com/package/le-validat

Usage no npm install needed!

<script type="module">
  import leValidator2 from 'https://cdn.skypack.dev/le-validator2';
</script>

README

Le Validator 2

original https://www.npmjs.com/package/le-validator npm downloads

Just a library to generate openapi3 while also do validation based on the openapi3 specification

TODO

  • seems like joi is quite good in validation, maybe we can parse the body and use joi to validate it
  • seperate the openapibuilder to another repo
  • the error message return from validatorBody should be able to transform to another language easily
  • add multipleOf and pattern to validatorQuery