-
Notifications
You must be signed in to change notification settings - Fork 22
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
Required properties validation #60
Comments
@s12v, sorry for looking so late into it. I have two remarks. First, we don't have a null validation because we model it with Second, I can't really reproduce the issue. This is a specification I'm using:
And these are tests:
I guess the error messages do not respect Does it make sense? |
@slavaschmidt, thanks for looking into it. Behavior has changed in 0.2.0. Before, such errors were ignored and language property was For missing query parameters it returns "Missing parameter: test1" and error 400 - not the standard validation error, but I think it's ok. Missing path parameter it's 404 - looks good. Regarding
WDYT? |
Hm, actually my fix not going to work anymore, because |
Exactly! Everything which is required is by definition not allowed to be null without additional validations. Everything not required is defined as an Option[T] with null values represented as None. 500 is bad, let us do something with that. |
I see. You're right. But it wasn't like this before! :) Looks like marshalling has been changed in 0.2.0
👍 |
Endpoint:
definition:
request body:
Expected result: validation error (
language
property is required)Actual result: no errors
The text was updated successfully, but these errors were encountered: