@protoqol/directus-extension-schema-types
v1.1.10
Published
Directus extension to generate schemas/types for TypeScript, Rust, PHP, C#, Java, Python, Go, Kotlin, C++, Ruby, SQL, and GraphQL.
Maintainers
Readme

Features
- Multi-language Support: Generate schemas/types for TypeScript, Rust, PHP, C#, Java, Python, Go, Kotlin, C++, Ruby, SQL, and GraphQL.
- Geography Support: Includes custom types for geography fields (no dependencies needed).
- Relationships included: Handles relationships between collections, generating nested types where appropriate.
- Fine-grained control: Choose specific fields or entire collections to generate schemas for.
- All versions of your favorite language Java 8 up to 21, Python 3.6 up to 3.11
See Generated code for a preview.
Installation
There are a few different ways to install this extension:
- (Recommended) Via Directus Marketplace search for
schema-types - Go to
YOUR_DIRECTUS_URL/admin/settings/marketplace/extension/41ae62cf-ee7f-483f-80d9-5572690a2976and install from there - Self-hosted: see Directus Docs to install extensions.
- (Recommended) Via Directus Marketplace search for
- Enable the module in Settings > Modules > Module Bar > Schema Types.
Note: You might need to set the following environment variable:
MARKETPLACE_TRUST: all
Generated code
Wondering what the generated code looks like?

Converting the collection
geographyto Rust with serde enabled - you can also export without serde. Also note the automatically included geometry types, completely free of charge!

Converting all collections to Python 3.9 has never been easier.
Feedback, suggestions or issues?
Please open an issue on this repository. We're happy to hear back from you!
Developed by Protoqol.
