From 5d77340b4e9f2243956c64c24d35874097d6a8b1 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Tue, 16 Aug 2022 11:00:25 +0200 Subject: [PATCH] schema fieldArray --- schemas/api-config/field.json | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/schemas/api-config/field.json b/schemas/api-config/field.json index f6b21aa..9a5afbb 100644 --- a/schemas/api-config/field.json +++ b/schemas/api-config/field.json @@ -31,19 +31,27 @@ } }, "subFields": { - "type": "array", - "description": "sub fields of object", - "items": { - "oneOf": [ - { - "$comment": "for include tag", - "type": "string" - }, - { - "$ref": "#" + "oneOf": [ + { + "$comment": "for include tag", + "type": "string" + }, + { + "type": "array", + "description": "sub fields of object", + "items": { + "oneOf": [ + { + "$comment": "for include tag", + "type": "string" + }, + { + "$ref": "#" + } + ] } - ] - } + } + ] }, "meta": { "type": "object",