Test repository for graphql-codegen-typescript-validation-schema.
Enum on directive argument.
directive @validateString(
format: StringFormat
) on INPUT_FIELD_DEFINITION | ARGUMENT_DEFINITION
enum StringFormat {
EMAIL
IP
}
# All validation directives
input Example {
email: String! @validateString(format: EMAIL)
ip: String! @validateString(format: IP)
}
npm ci
npm run codegen
See Releases page.
Install devDependencies and Run npm test
:
npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © azu