From 37e0f69292c9d0ff31dff04f4a8ca6a60ac6da6d Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Thu, 9 Feb 2023 14:15:46 -0700 Subject: [PATCH] Fixed max length validation --- .../schema/attribute/attribute.schema.json | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/ui/public/assets/schema/attribute/attribute.schema.json b/ui/public/assets/schema/attribute/attribute.schema.json index 84590e08e..32fd0a7fc 100644 --- a/ui/public/assets/schema/attribute/attribute.schema.json +++ b/ui/public/assets/schema/attribute/attribute.schema.json @@ -81,7 +81,8 @@ "defaultValue": { "title": "label.entity-attribute-default", "description": "tooltip.entity-attribute-default", - "type": "string" + "type": "string", + "maxLength": 255 } } }, @@ -95,7 +96,8 @@ "defaultValue": { "title": "label.entity-attribute-default", "description": "tooltip.entity-attribute-default", - "type": "string" + "type": "string", + "maxLength": 255 } } }, @@ -127,7 +129,8 @@ "type": "string", "title": "label.entity-attribute-persist-type", "description": "tooltip.entity-attribute-persist-type", - "default": "string" + "default": "string", + "maxLength": 255 }, "invert": { "type": "boolean", @@ -147,7 +150,8 @@ "title": "label.entity-attribute-default", "description": "tooltip.entity-attribute-default", "type": "string", - "pattern": "^(R\\d*\\/)?P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$" + "pattern": "^(R\\d*\\/)?P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$", + "maxLength": 255 } } }, @@ -161,7 +165,8 @@ "defaultValue": { "title": "label.entity-attribute-default", "description": "tooltip.entity-attribute-default", - "type": "string" + "type": "string", + "maxLength": 255 } } }, @@ -175,7 +180,8 @@ "defaultValue": { "title": "label.entity-attribute-default", "description": "tooltip.entity-attribute-default", - "type": "string" + "type": "string", + "maxLength": 255 } } }, @@ -190,7 +196,8 @@ "title": "label.entity-attribute-default", "description": "tooltip.entity-attribute-default", "type": "string", - "pattern": "^\\d+$" + "pattern": "^\\d+$", + "maxLength": 255 } } }, @@ -211,7 +218,8 @@ "properties": { "value": { "type": "string", - "placeholder": "Option" + "placeholder": "Option", + "maxLength": 255 }, "default": { "type": "boolean",