Features

Auto import Astro schema as collection schema

2y agoCompleted

I would love to import a .ts file like [this one](https://github.com/SamFeltip/Sharrowvale-Small-Businesses/bl…) 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.

2 comments

  1. Waishnav marked this as Completed9mo ago
  2. Waishnav9mo ago

    @Sam Felton, have a quick look at our latest web version which we rebuilt from scratch

    we have CLI based on-boarding as well which intelligently detects collection and frontmatter schema instead of doing it manually through UI.

    Also web based on-boarding has improved quiet alot, it also auto-detects collection and it's frontmatter schema automatically

    You can try it https://gitcms.dev

  3. Waishnav2y ago

    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.