Closed GIANTCRAB closed 5 years ago
As per the JSON API spec, it merges the values submitted by the client with the current attributes, and then passes them into the validator. That's described in the new chapter in the docs about validating update requests.
So for the data you've submitted, as there's no birth-date
attribute, it will be using the value of the birth-date
as it is on the model.
Thanks
Laravel JSON API version: "v1.3.0"
This is my Users validator
When I submit the following HTTP request in my tests:
This is the response I received:
I expected the new validator to respect my nullable rule. I think nullable for title is respected but birth-date is not? My feature test passed previously with the old validator. Is there something wrong with my code or is it something else?