-
Notifications
You must be signed in to change notification settings - Fork 138
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
OS3 request validator skip if link does not exist #240
Conversation
@@ -256,7 +256,7 @@ def app | |||
it "rescues JSON errors" do | |||
@app = new_rack_app(schema: open_api_3_schema) | |||
header "Content-Type", "application/json" | |||
post "/apps", "{x:y}" | |||
post "/characters", "{x:y}" |
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.
This path doesn't exist, it returns 200. To test JSON errors, I changed existing path. :)
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.
👍
@@ -49,7 +51,6 @@ def coerce_form_params(_parameter) | |||
attr_reader :validator_option | |||
|
|||
def coerce_path_params | |||
return {} unless link_exist? |
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.
💯
@@ -256,7 +256,7 @@ def app | |||
it "rescues JSON errors" do | |||
@app = new_rack_app(schema: open_api_3_schema) | |||
header "Content-Type", "application/json" | |||
post "/apps", "{x:y}" | |||
post "/characters", "{x:y}" |
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.
👍
Summary