From bf937e784766a91da0039eecfbe6c03cb6f31848 Mon Sep 17 00:00:00 2001 From: sventruschel Date: Wed, 13 Dec 2023 09:27:59 +0100 Subject: [PATCH 1/2] 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": { From d16edc4bc19ff687fd662d65417af3b8753db976 Mon Sep 17 00:00:00 2001 From: sventruschel Date: Wed, 13 Dec 2023 15:41:32 +0100 Subject: [PATCH 2/2] fix: remove inherit from allowed anyof types --- schemas/actions/function/option/types/output.json | 1 - 1 file changed, 1 deletion(-) diff --git a/schemas/actions/function/option/types/output.json b/schemas/actions/function/option/types/output.json index 98bb836..0f0cbfa 100644 --- a/schemas/actions/function/option/types/output.json +++ b/schemas/actions/function/option/types/output.json @@ -128,7 +128,6 @@ "anyOf": [ { "$ref": "#/definitions/base" }, { "$ref": "#/definitions/collection" }, - { "$ref": "#/definitions/inherit" }, { "$ref": "#/definitions/record" }, { "$ref": "#/definitions/object" }, { "$ref": "#/definitions/array" }