Describe the solution you'd like
Writing this setting in a block/section/settings_schema.json should warn me that the default doesn't match the options.
"settings": [
{
"type": "select",
"id": "alignment",
"default": "this-is-not-an-option",
"options": [
{ "value": "flex-start", "label": "t:options.alignment.left" },
{ "value": "center", "label": "t:options.alignment.center" },
{ "value": "flex-end", "label": "t:options.alignment.right" }
],
},
Similarly, I'd like the presets to warn me as well if a setting value in a preset is not a valid option.
"presets": [
{
"name": "t:general.column",
"category": "t:general.layout",
"settings": {
"layout_direction": "group--vertical",
"alignment": "this-is-not-an-option",
}
},
Describe the solution you'd like
Writing this setting in a block/section/settings_schema.json should warn me that the default doesn't match the options.
Similarly, I'd like the presets to warn me as well if a setting value in a preset is not a valid option.