-
Notifications
You must be signed in to change notification settings - Fork 476
Invalid Swagger Schema - Delete #711
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
Comments
The schema contains multiple |
I added the following monkey patch to my app, and it appears to resolve the invalid schema issues. It seems the logic is simply flawed in these existing methods: module GrapeSwagger
module DocMethods
class MoveParams
class << self
def can_be_moved?(params, http_verb)
includes_body_param?(params)
end
def should_expose_as_array?(params)
false
end
def should_correct_array?(param)
false
end
end
end
end
end |
@lstanden The multiple grape-swagger/lib/grape-swagger/doc_methods/move_params.rb Lines 218 to 220 in 8e4a39c
|
Yes, I'm aware of this @darren987469 ... by not having DELETE included, it is generating invalid swagger schema. |
The following example method creates an invalid schema:
The text was updated successfully, but these errors were encountered: