You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
Describe the bug
The following error is displayed:
at Object.format [as code] (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:68605)
at Object.at [as validate] (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:33112)
at Object.properties [as code] (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:85456)
at Object.at [as validate] (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:33112)
at Object.$ref [as code] (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:56033)
at Object.at [as validate] (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:31656)
at Object.properties [as code] (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:85456)
at at (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:33112)
at ya.P (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:35247)
at ya.zr (/usr/local/lib/node_modules/dredd/node_modules/gavel/build/index.js:3:21663)
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.
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
stoplightio/spectral#187 (comment)
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?The text was updated successfully, but these errors were encountered: