Skip to content

Nested object's method rules is ignored when parent object is validated #134

Answered by rubenvanassche
alexrififi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @medvinator,

Could you provide me a test which shows where this is going wrong? We have a test for nested data objects with overwritten rules : https://github.com/spatie/laravel-data/blob/main/tests/Resolvers/DataValidationRulesResolverTest.php#L74-L90 and it seems to be working fine to me.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexrififi
Comment options

Answer selected by alexrififi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants