Skip to content

azu/graphql-codegen-typescript-validation-schema-enum-as-param

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-codegen-typescript-validation-schema-enum-as-param

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

Install

npm ci
npm run codegen

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published