Open vkutepov opened 3 years ago
We found the same issue with the swagger custom format "byte" (dredd v14.0.0 )
Error: unknown format "byte" is used in schema at path "#/properties/content"
at Object.format [as code] (/..../node_modules/gavel/build/index.js:3:68605)
at Object.at [as validate] (/..../node_modules/gavel/build/index.js:3:33112)
at Object.properties [as code] (/..../node_modules/gavel/build/index.js:3:85456)
It seems swagger custom formats (extensions to json-schema) got somehow misconfigured when bumping AJV in gavel. I'm not sure if this is an issue in Gavel, or the way Dredd uses Gavel. Since both projects are ApiaryIO's I thought it was ok to report it here.
I disagree with the proposed solution of having a flag to skip validation, I would prefer these formats to be supported again.
@artem-zakharchenko do you know if we support this custom data format in schema validation using Gavel?
I think this is pretty much the same as https://github.com/apiaryio/dredd/issues/1719#issuecomment-648389628
Describe the bug The following error is displayed:
This is an error in AJV v6 the guys from stoplightio encountered the same problem and solved it https://github.com/stoplightio/spectral/issues/187#issuecomment-493017214
I wanted to know if it is possible to add to the dredd a flag that will not validate the scheme, and will only check the response code "--validate-schema" ? Just like in this library ajv-cli https://github.com/ajv-validator/ajv-cli#options-1
I can't use dredd because of this bug.
To Reproduce Use this in your swagger spec:
Expected behavior No error should be generated or displayed.
What's your
dredd --version
output?Does
dredd --loglevel=debug
uncover something?