Skip to content

How to handle directives without arguments? #781

Open
@rwysocki-equinix

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"
}

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