presets: Require valid CMake cache variable type in schema

This commit is contained in:
Tyler Yankee
2026-01-24 21:15:40 -05:00
parent c5862fee8f
commit 3373abf901

View File

@@ -388,7 +388,10 @@
"properties": {
"type": {
"type": "string",
"description": "An optional string representing the type of the variable. It should be BOOL, FILEPATH, PATH, STRING, or INTERNAL."
"description": "An optional string representing the type of the variable. It should be BOOL, FILEPATH, PATH, STRING, or INTERNAL.",
"enum": [
"BOOL", "FILEPATH", "PATH", "STRING", "INTERNAL"
]
},
"value": {
"anyOf": [