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
Currently the following request type in a handler:
#[derive(Debug, NewType)] struct Amount(Decimal); #[derive(Debug, Object)] struct MyRequest { amount: Amount, }
Will result in an:
parse request payload error: Expected input type "string(decimal)", found 2. (occurred while parsing "MyRequest")
When following data is sent in request:
curl -is localhost:8080/get_amount -XPOST -H "Content-Type: application/json" -d '{"amount": 2}' -v
The PR fixes it on my machine ;)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to Reproduce the Problem
Currently the following request type in a handler:
Will result in an:
When following data is sent in request:
The PR fixes it on my machine ;)
Specifications
The text was updated successfully, but these errors were encountered: