Hilzu / express-openapi-validate

Express middleware to validate requests based on an OpenAPI 3 document
Apache License 2.0
76 stars 12 forks source link

Support for `format` validation in data types #2

Closed Hilzu closed 6 years ago

Hilzu commented 6 years ago

OAS expands the format fields supported by JSON schema. Support the additional values and ensure validation for the JSON schema specified values work. https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#dataTypeFormat

Hilzu commented 6 years ago

Implemented by https://github.com/Hilzu/express-openapi-validate/commit/4556fa2d52e6c3cd193980999d9608eadde8ffaa