parameter.schema.json: Add readOnly property and make type optional (#2449)

* parameter.schema.json: Add readOnly property and make type optional

Add a readOnly boolean property to the parameter metadata schema to
indicate parameters that should not be changed by the user.

Make the type field optional since it can be determined at runtime
from the PARAM_VALUE message.

* Apply suggestion from @hamishwillee

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
This commit is contained in:
Don Gagne
2026-04-08 11:45:31 -07:00
committed by GitHub
parent a3d0712cd0
commit f368676f60
+7 -2
View File
@@ -8,7 +8,7 @@
"version": {
"description": "Version number for the format of this file.",
"type": "integer",
"minimum": 2
"minimum": 3
},
"translation": {
"type": "object",
@@ -122,9 +122,14 @@
}
}
}
},
"readOnly": {
"description": "true: value is read only and should not be changed by user.",
"type": "boolean",
"default": false
}
},
"required": [ "name", "type" ],
"required": [ "name" ],
"additionalProperties": false
}
}