Skip to content

feat(codegen): types and validations

jon r requested to merge feat/14/codegen-of-types-and-validations into feature/8

This PR brings changes on top of feature/8 to allow it to generate TypeScript types and Zod validations from the Directus GraphQL schema.

  • adds documentation in README
  • adds scripts to the JS package
  • adds GraphQL Codegen configuration
  • adds new dependencies
  • masks intermediary artifacts
  • pins tool versions

There is one commit that appears a bit out of band, and shuffles the imports in the API a bit. This part of the application will change anyway, why it doesn't seem to intrusive to introduce this with the PR here. But it is noted for reference.

Closes #14 (closed)

Edited by jon r

Merge request reports