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
the exactly_one_of method doesn't work correctly if it is wrapped inside a Hash
exactly_one_of
Hash
The text was updated successfully, but these errors were encountered:
Would be helpful if you could write an RSpec test that reproduces this problem.
Sorry, something went wrong.
+1 not work, here is one of example:
requires :order, type: Hash do optional :quantity, type: BigDecimal optional :usd_amount, type: BigDecimal exactly_one_of :quantity, :usd_amount end
Rspec for it
post "/api/v1/orders", {order: {quantity: 1}} expect(response).to have_http_status(200)
This is fixed on HEAD, in #774. Confirmed with the spec above.
Thanks for your contribution @dblock, , haven't had chance to check it, because I just use head of master and it raised this issue #825
Will check again later.
No branches or pull requests
the
exactly_one_of
method doesn't work correctly if it is wrapped inside aHash
The text was updated successfully, but these errors were encountered: