Skip to content

How to handle directives without arguments? #781

Description

@rwysocki-equinix
input EditWidth {
  width: BigDecimal @Positive @Digits(integer: 10, fraction: 2)
}

How to handle the Positive directive?

this format always expects arguments

directive:
   arg1: schemaApi
   arg2: ["schemaApi2", "Hello $1"]

It would be ideal to be able to define directive mapping without arguments like:

directives: {
  Positive: "positive"
}

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions