Skip to content

Conversation

@zackAJ
Copy link
Owner

@zackAJ zackAJ commented Dec 22, 2024

related issues: laravel#50211, laravel#49890, possibly laravel#37729

Copy link
Owner Author

@zackAJ zackAJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requesting changes

Copy link
Owner Author

@zackAJ zackAJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: I don't know where to put the context keys as constants, maybe their review will help.

@zackAJ zackAJ closed this Dec 22, 2024
zackAJ pushed a commit that referenced this pull request May 21, 2025
…ets (laravel#55191)

* [12.x] introduce `Rule::oneOf()` (#laravel#54880)

* chore: apply styleCI

* feat: add nested oneOf validation test

* chore: apply styleCI

* refactor: rename `oneof` into `anyof` to fit implementation

* fix: wrong failure message

* feat: update base tests

* feat: add test case

* chore: apply styleCI

* formatting

* feat: allow string fields

* feat: add test and clean nested rules

* chore: apply styleCI

* failing test

* Validation tests (#1)

* feat: add more validation tests

* wip: add failing test

* wip: add basic string rule validations

* chore: rename object fields for better debugging

* refactor: rename ruleSets to rules

* fix: respect array rule validation

---------

Co-authored-by: Christian Ascone <ascone.christian@gmail.com>

* fix: this should be passing because AnyOf has no type relevance and 'required' only checks to see if the field has something in it

---------

Co-authored-by: Christian Ascone <ascone.christian@gmail.com>

---------

Co-authored-by: Christian Ascone <ascone.christian@gmail.com>

* chore: correspond with recent changes https://github.com/brianferri/framework/pull/1/commits/de3b902a950b8f5ba8edaafa273f91d7c6ade295

* chore: remove unused private property

* feat: attribute mapping in favor of potentially indexed mapping

* feat: add more tests

* refactor(tests): remove unnecessary amount of tests, rename parameter properties to be more descriptive/analogous to use cases

* chore: apply styleCI

* feat: add tests to verify compliance with dot notation nesting validator

* formatting

* fix: remove messages

* fix(wip): regression introduced in 14598f6

laravel#55191 (comment)

* feat: implement star rule counter tests for simple and nested rules

Co-authored-by: Christian Ascone <ascone.christian@gmail.com>

* chore: apply styleCI

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
Co-authored-by: Christian Ascone <ascone.christian@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants