-
Notifications
You must be signed in to change notification settings - Fork 135
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 option to permit validation when schema and data are empty #417
Changes from all commits
d1488a8
6de7583
0d63bfd
97ece37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -184,6 +184,17 @@ | |||||||||||||
} | ||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
}, | ||||||||||||||
"/pets/cat": { | ||||||||||||||
"get": { | ||||||||||||||
"description": "Returns pets which are cats", | ||||||||||||||
"operationId": "find pets which are cats", | ||||||||||||||
"responses": { | ||||||||||||||
"200": { | ||||||||||||||
"description": "empty schema" | ||||||||||||||
Comment on lines
+192
to
+194
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. imo) 204 No Content I think the response body is empty as a specification. So why not make the test data follow the common use case?
Suggested change
Refs: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204#compatibility_notes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In my recent experiences, I've noticed the following scenarios:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for your detailed explanation! |
||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
}, | ||||||||||||||
"definitions": { | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ruby 3.2.2
ruby 3.3.0
ruby head