From baa34b46464171c88bc11d027bff2ce809f569a4 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 30 Mar 2023 10:09:24 +0000 Subject: [PATCH] include tag for css --- schemas/api-config/fieldMeta.json | 91 +++++++++++++++++++------------ 1 file changed, 56 insertions(+), 35 deletions(-) diff --git a/schemas/api-config/fieldMeta.json b/schemas/api-config/fieldMeta.json index 595c455..299b873 100644 --- a/schemas/api-config/fieldMeta.json +++ b/schemas/api-config/fieldMeta.json @@ -397,47 +397,68 @@ }, "css": { "description": "css styles for field widgets", - "type": "object", - "properties": { - "input": { + "oneOf": [ + { "$comment": "for include tag", "type": "string" }, + { "type": "object", - "description": "css styles for input widget", - "additionalProperties": false, "properties": { - "wrapper": { - "description": "css styles for input widget wrapper", - "$ref": "#/definitions/css" + "input": { + "description": "css styles for input widget", + "oneOf": [ + { + "$comment": "for include tag", + "type": "string" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "wrapper": { + "description": "css styles for input widget wrapper", + "$ref": "#/definitions/css" + }, + "element": { + "description": "css styles for input widget sub elements", + "$ref": "#/definitions/css" + }, + "foreignEntry": { + "description": "css styles for input widget linked foreign entries", + "$ref": "#/definitions/css" + } + } + } + ] }, - "element": { - "description": "css styles for input widget sub elements", - "$ref": "#/definitions/css" - }, - "foreignEntry": { - "description": "css styles for input widget linked foreign entries", - "$ref": "#/definitions/css" - } - } - }, - "view": { - "type": "object", - "description": "css styles for input widget", - "additionalProperties": false, - "properties": { - "wrapper": { - "description": "css styles for view widget wrapper", - "$ref": "#/definitions/css" - }, - "element": { - "description": "css styles for view widget sub elements", - "$ref": "#/definitions/css" - }, - "foreignEntry": { - "description": "css styles for input widget linked foreign entries", - "$ref": "#/definitions/css" + "view": { + "description": "css styles for input widget", + "oneOf": [ + { + "$comment": "for include tag", + "type": "string" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "wrapper": { + "description": "css styles for view widget wrapper", + "$ref": "#/definitions/css" + }, + "element": { + "description": "css styles for view widget sub elements", + "$ref": "#/definitions/css" + }, + "foreignEntry": { + "description": "css styles for input widget linked foreign entries", + "$ref": "#/definitions/css" + } + } + } + ] } } } - } + ] }, "dependsOn": { "description": "depends on rule",