Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for acv.addFormats #696

Open
TRoussel opened this issue Apr 3, 2023 · 0 comments
Open

Add support for acv.addFormats #696

TRoussel opened this issue Apr 3, 2023 · 0 comments

Comments

@TRoussel
Copy link

TRoussel commented Apr 3, 2023

Is your feature request related to a problem? Please describe.
Since version 7, Ajv does not include formats defined by JSON Schema specification. Hence, "byte" data format is not part of ajv validator and reports an error if we try to validate a schema with such data format using Postman.

Describe the solution you'd like
This, and several other formats are provided by ajv-formats plugin.
Add this plugin to Postam to be able to validate schemas which define attributes of byte format (and all other formats part of the plugin)

Additional context
Error reported by ajv validator when using 'byte' data format : "unknown format "byte" is used in schema at path "#/foo/bar"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant