-
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
Nullable Request #11
Comments
Maybe using SUMA to validate these values... |
By default Suma will not validate null: When there is a need for non-nullable, use How do you think we could bring these feature to Buchu? |
I believe that the behavior must be the same, because the Programmer must express your intention to a nullable field... Then presence aways true, but with an option to overide and set as false... |
regardless of discussion of the default behavior for nullables fields I believe we should have |
Now that Suma validates Contains and notContains we can improve buchu with these validations as well. |
@jhomarolo |
At that moment, buchu accept undefined as a valid value, but reject null... |
we have two options: to me entities ( for with that I think the next step would leave the current behavior for the libs and improve |
this issue is from jun 2020, this still make sense to maintain opened? @endersoncosta |
we have plent of systems running with Herbs since 2020. how we managed with this problem so far? @endersoncosta @jhomarolo ? workarounds? it is important to understand the patterns we created on top of this limitation |
@VictorTBX given that you recently worked on a similar feature, can you tell us if this issue is still valid? |
@jhomarolo partially, since we have the new feature for request we can manage which fields I want to receive, but an "allowNull" still may be valid in some scenarios. |
Maybe we can change the schema validation to add a option in request structure, to inform that the value can be null or undefined and our steps will treat this...
like this:
request: { id: !Number }
or like this:
request: { id: Number || undefined }
The text was updated successfully, but these errors were encountered: