-
Notifications
You must be signed in to change notification settings - Fork 86
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
Empty response body fails validation #101
Milestone
Comments
But I think it is better to return true when the validation was passed so we should change return value :) |
tristanoneil
pushed a commit
to tristanoneil/openapi_parser
that referenced
this issue
Mar 30, 2022
As mentioned in ota42y#101 it makes more sense to return true from this method when validation passes instead of nil.
tristanoneil
pushed a commit
to tristanoneil/openapi_parser
that referenced
this issue
Mar 30, 2022
As mentioned in ota42y#101 it makes more sense to return true from this method when validation passes instead of nil.
tristanoneil
pushed a commit
to tristanoneil/openapi_parser
that referenced
this issue
Mar 30, 2022
As mentioned in ota42y#101 it makes more sense to return true from this method when validation passes instead of nil.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Validation fails on 204 response, which has empty string as body.
Example:
Code
Expected result is truth-y, but actual result is
nil
.This is btw similar to a bug in openapi-library/OpenAPIValidators#54.
The text was updated successfully, but these errors were encountered: