Skip to content
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

Minor issues with error messages #121

Closed
Fryguy opened this issue Oct 9, 2019 · 5 comments
Closed

Minor issues with error messages #121

Fryguy opened this issue Oct 9, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@Fryguy
Copy link
Contributor

Fryguy commented Oct 9, 2019

Was reviewing some API things with @psav and we noticed a few minor oddities:

  1. When you pass invalid fields (readonly for example) in a POST request, the error string that comes back has the values as symbols. However this is strange from non-Ruby clients where symbols aren't a thing (nor or they even a thing in JSON). These should be changed in the error message to just strings.

  2. If a null value is passed to a non-nullable field the error message is strange. Something like a, b, c: don't accept null

cc @bdunne

@Fryguy Fryguy added the bug Something isn't working label Oct 9, 2019
@bdunne
Copy link
Contributor

bdunne commented Oct 9, 2019

Do you have examples? We have a bunch of test cases for these responses. Are we missing some?

@mkanoor
Copy link
Contributor

mkanoor commented Oct 9, 2019 via email

@bdunne
Copy link
Contributor

bdunne commented Oct 10, 2019

Opened a PR to the library that raises these errors... ota42y/openapi_parser#55

@Fryguy
Copy link
Contributor Author

Fryguy commented Dec 12, 2019

@bdunne Can this be closed now?

@bdunne bdunne closed this as completed Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants