Submission
avatar
Sam Felton
Mar 6, 2025
Board
Features
Status
Reviewing
Get Updates
Powered by UserJot
Auto import Astro schema as collection schema
I would love to import a .ts file like [this one](https://github.com/SamFeltip/Sharrowvale-Small-Businesses/blob/main/src/schemas/businesses.ts) and use the zod schema to build a content collection. It would save me needing to manually select all the options to fill in the schema. Failing that, being able to manually edit the gitcms schema would be useful - I would give my partially complete gitcms schema and the zod schema to chatGPT and make it fill in the gaps, but I see at the bottom of the config file: > This is autogenerated configutation file by GitCMS. Don't edit it on your own, edit it only using GitCMS UI So I assume I'm not supposed to edit this file myself.
avatar
Sam Felton
Mar 6, 2025
1
avatar
WaishnavMar 7, 2025
Yes, currently, you are not supposed to edit this file manually. You should only edit it through the GitCMS interface. In most cases, the frontmatter schema remains unchanged once the collection is set up in the SSG. It only requires updates occasionally. While this feature hasn’t been a priority so far, I’m happy to consider it if there’s enough interest and discussion around it. Thanks for suggesting so that community can discuss here in this forum.