Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

feat: make the initial value template generation optional#168

Open
Jamiewarb wants to merge 2 commits intosanity-io:mainfrom
Jamiewarb:patch-1
Open

feat: make the initial value template generation optional#168
Jamiewarb wants to merge 2 commits intosanity-io:mainfrom
Jamiewarb:patch-1

Conversation

@Jamiewarb
Copy link

Currently there is no way to opt-out of the initial value template generation, and instead they need to be removed if not being used.

This commit adds a configuration option to opt-out of either the static, parametized or both template generation.

By default, both are still generated.

initialValueTemplates: false will prevent any generation
initialValueTemplates: 'static' will only generate the static templates
initialValueTemplates: 'parameterized' will only generate the parameterized templates

Currently there is no way to opt-out of the initial value template generation, and instead they need to be removed if not being used.

This commit adds a configuration option to opt-out of either the static, parametized or both template generation.

By default, both are still generated.

`initialValueTemplates: false` will prevent any generation
`initialValueTemplates: 'static'` will only generate the static templates
`initialValueTemplates: 'parameterized'` will only generate the parameterized templates
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant