Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle directives without arguments? #781

Open
rwysocki-equinix opened this issue Aug 19, 2024 · 0 comments
Open

How to handle directives without arguments? #781

rwysocki-equinix opened this issue Aug 19, 2024 · 0 comments

Comments

@rwysocki-equinix
Copy link

rwysocki-equinix commented Aug 19, 2024

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"
}
rwysocki-equinix added a commit to rwysocki-equinix/graphql-codegen-typescript-validation-schema that referenced this issue Aug 21, 2024
* Add support for directives without arguments like `@required()`
* Add support for custom directive mapping

Closes Code-Hex#422, Code-Hex#781
rwysocki-equinix added a commit to rwysocki-equinix/graphql-codegen-typescript-validation-schema that referenced this issue Sep 20, 2024
* Add support for directives without arguments like `@required()`
* Add support for custom directive mapping

Closes Code-Hex#422, Code-Hex#781
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant