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
format: uuid
cause fail
#1218
Comments
As a workaround, I'm writing some hooks.
|
Thanks! The first step would be to figure out where does the current uuid validation come from. Whether it's the JSON Schema validator we use, the Swagger parser, or something else. I'd say this is a bug. |
Hello! I am running into this same issue. Has there been any more investigation into this? |
I just encountered this issue using Dredd v13.0.1 which includes the PR referenced above, so it doesn't look like this PR has resolved the issue. |
I can confirm via the steps to reproduce by the OP that the original problem here is resolved in Dredd 13.0.1: $ dredd
pass: GET (200) /test.json duration: 49ms
complete: 1 passing, 0 failing, 0 errors, 0 skipped, 1 total
complete: Tests took 52ms I had to make minor alterations to the Dredd config to support the newer version of Dredd: diff --git a/dredd.yml b/dredd.yml
index 46f904ac..973f9744 100644
--- a/dredd.yml
+++ b/dredd.yml
@@ -1,6 +1,5 @@
init: true
dry-run: null
-hookfiles: hooks.js
language: nodejs
require: null
server: python3 -m http.server
@@ -17,9 +16,6 @@ inline-errors: false
details: false
method: []
color: true
-level: info
-timestamp: false
-silent: false
path: []
hooks-worker-timeout: 5000
hooks-worker-connect-timeout: 1500 |
Describe the bug
format: uuid
of JSON schema cause fail.To Reproduce
And response
test.json
bypython3 -m http.server
.Expected behavior
Validate string as an UUID or ignore as an unsupported format.
It makes inconvenient to use with other tools.
What is in your
dredd.yml
?What's your
dredd --version
output?The text was updated successfully, but these errors were encountered: