Skip to content

Array Validation Fails #4510

Closed
Closed
@luispastendev

Description

@luispastendev

hi there!

validation with more than 1 level only validates the first match.

Example:

// rule
'bar.*.foo' => [
    'rules' => 'required'
]

// data
"bar" => [
  [
    'foo' => 'baz'
  ],
  [
    'foo' => ''
  ]
]

the above validation should fails, however it passes. https://codeigniter4.github.io/userguide/libraries/validation.html#validating-keys-that-are-arrays

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions