diff --git a/schemas/applications/CHANGELOG.md b/schemas/applications/CHANGELOG.md index 19eac3a1..23844990 100644 --- a/schemas/applications/CHANGELOG.md +++ b/schemas/applications/CHANGELOG.md @@ -23,6 +23,7 @@ Release Versions: ## Upcoming changes - feat: add hardware plugin (#454) +- feat: add support for parameter files in components and controllers (#463) ## 2-1-0 diff --git a/schemas/applications/schema/application.schema.json b/schemas/applications/schema/application.schema.json index dc9858bb..4fc3c60b 100644 --- a/schemas/applications/schema/application.schema.json +++ b/schemas/applications/schema/application.schema.json @@ -149,6 +149,9 @@ "parameters": { "$ref": "common/parameters.schema.json" }, + "parameters_file": { + "$ref": "common/parameters_file.schema.json" + }, "signals": { "$ref": "common/signals.schema.json" }, diff --git a/schemas/applications/schema/common/parameters_file.schema.json b/schemas/applications/schema/common/parameters_file.schema.json new file mode 100644 index 00000000..f4f017eb --- /dev/null +++ b/schemas/applications/schema/common/parameters_file.schema.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Parameters File", + "description": "A path to a YAML or JSON parameters file that is used to set parameter values on load. This is evaluated before any values in the `parameters` property are applied.", + "type": "string", + "pattern": "^(file:\/\/\/|(data|package):\/\/)[a-zA-Z0-9_]+(\/?[a-zA-Z0-9_-]+)*(.yaml|.json)$" +} \ No newline at end of file diff --git a/schemas/applications/schema/components.schema.json b/schemas/applications/schema/components.schema.json index c9736419..1b50a42c 100644 --- a/schemas/applications/schema/components.schema.json +++ b/schemas/applications/schema/components.schema.json @@ -57,6 +57,9 @@ "parameters": { "$ref": "common/parameters.schema.json" }, + "parameters_file": { + "$ref": "common/parameters_file.schema.json" + }, "inputs": { "$ref": "common/signals.schema.json" }, diff --git a/schemas/applications/schema/hardware.schema.json b/schemas/applications/schema/hardware.schema.json index a164a836..d1af9f06 100644 --- a/schemas/applications/schema/hardware.schema.json +++ b/schemas/applications/schema/hardware.schema.json @@ -155,6 +155,9 @@ "parameters": { "$ref": "common/parameters.schema.json" }, + "parameters_file": { + "$ref": "common/parameters_file.schema.json" + }, "inputs": { "$ref": "common/signals.schema.json" },