Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...
Is your feature request related to a problem? Please describe.
Hi Elio,
I searched through issues, but haven't found anything relevant. I'm testing your extension with Astro (Starlight). Does the Front Matter CMS allows to describe the union type?
I tried the AI assistant on Front Matter's website and it hallucinated a solution 😆
To create a Front Matter field that allows the tableOfContents to be either a boolean or an object with specific properties, you can use the union field type. This type allows you to define multiple types for a single field. Below is an example of how you can define such a field in your Front Matter configuration:
Is your feature request related to a problem? Please describe.
Hi Elio, I searched through issues, but haven't found anything relevant. I'm testing your extension with Astro (Starlight). Does the Front Matter CMS allows to describe the
union
type?In Zod, it's described like this:
Describe the solution you'd like
The ability to describe unions would be great.
Describe alternatives you've considered
I tried to use the
fieldGroups
, but without success:https://github.com/estruyf/vscode-front-matter/assets/33784221/c19ed5a1-3259-435b-b9d6-c3a7c68e2813
Additional context
I tried the AI assistant on Front Matter's website and it hallucinated a solution 😆