We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I had an API definition that looked like:
requires :blahvalue, :type => Integer, values: 1262358112..3000000000, :desc => "foo"
This was designed to use a range to check to do basic validation. However, this blows up in the following code:
enum_values = enum_values.to_a if enum_values && enum_values.is_a?(Range)
to_a expands the range completely into an array. Which is very dangerous :)
The text was updated successfully, but these errors were encountered:
This has been discussed and is definitely a problem, I'd appreciate a PR/fix.
Sorry, something went wrong.
Actually dup with https://github.com/tim-vandecasteele/grape-swagger/issues/235.
No branches or pull requests
I had an API definition that looked like:
requires :blahvalue, :type => Integer, values: 1262358112..3000000000, :desc => "foo"
This was designed to use a range to check to do basic validation. However, this blows up in the following code:
enum_values = enum_values.to_a if enum_values && enum_values.is_a?(Range)
to_a expands the range completely into an array. Which is very dangerous :)
The text was updated successfully, but these errors were encountered: