From bf937e784766a91da0039eecfbe6c03cb6f31848 Mon Sep 17 00:00:00 2001 From: sventruschel Date: Wed, 13 Dec 2023 09:27:59 +0100 Subject: [PATCH] feat: add any off key to output option --- .../actions/function/option/types/output.json | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/schemas/actions/function/option/types/output.json b/schemas/actions/function/option/types/output.json index 47c5897..98bb836 100644 --- a/schemas/actions/function/option/types/output.json +++ b/schemas/actions/function/option/types/output.json @@ -7,6 +7,7 @@ "additionalProperties": false, "definitions": { "base": { + "additionalProperties": false, "type": "object", "properties": { "type": { @@ -113,6 +114,28 @@ ], "additionalProperties": false, "required": ["dataType"] + }, + "anyOfType": { + "type": "object", + "additionalProperties": false, + "properties": { + "scoped": { + "type": "boolean" + }, + "anyOf": { + "type": "array", + "items": { + "anyOf": [ + { "$ref": "#/definitions/base" }, + { "$ref": "#/definitions/collection" }, + { "$ref": "#/definitions/inherit" }, + { "$ref": "#/definitions/record" }, + { "$ref": "#/definitions/object" }, + { "$ref": "#/definitions/array" } + ] + } + } + } } }, "properties": { @@ -129,7 +152,8 @@ { "$ref": "#/definitions/inherit" }, { "$ref": "#/definitions/record" }, { "$ref": "#/definitions/object" }, - { "$ref": "#/definitions/array" } + { "$ref": "#/definitions/array" }, + { "$ref": "#/definitions/anyOfType" } ] }, "validations": {