Skip to content

Add rules between parameters #4

Description

@rodber

The library at this time doesn't have a process for comparing rules between parameters. For example, it can accept date_from and date_to parameters, but it doesn't have a mechanism for determining that date_to must be greater than date_from or any other conditional.

#[Restrictions(
    date_to: 'greater_than=date_from'
)]

I hate the syntax, needs work but the general idea is to provide an attribute where you can define applicable rules between argument values.

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