Skip to content

Checking object parameters #153

Open

Description

@zyyip

Hi, how would i check object params? There are only examples for arrays.

Activity

  1. floriankraemer commented on Oct 4, 2022

    @floriankraemer

    The lib works only with arrays. Use reflections to convert your object into an array or implement a toArray() method that does that for you in your object. The library seems to be no longer maintained, otherwise I would have suggested to create a PR to add object support.

    Check this fork, if its not already supporting objects I'm sure he will accept a proper PR. https://github.com/somnambulist-tech/validation

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