From f7d05bd9de52850a24881c9fef9acd69e808473b Mon Sep 17 00:00:00 2001 From: Vitalii Yarmus Date: Fri, 13 Sep 2024 15:18:28 +0300 Subject: [PATCH] HCK-7980: add validation of tag values --- .../container_level/containerLevelConfig.json | 5 ++ .../entity_level/entityLevelConfig.json | 5 ++ .../field_level/fieldLevelConfig.json | 75 +++++++++++++++++++ .../view_level/viewLevelConfig.json | 5 ++ 4 files changed, 90 insertions(+) diff --git a/properties_pane/container_level/containerLevelConfig.json b/properties_pane/container_level/containerLevelConfig.json index 9a22a6ae..fba4ac36 100644 --- a/properties_pane/container_level/containerLevelConfig.json +++ b/properties_pane/container_level/containerLevelConfig.json @@ -182,6 +182,10 @@ making sure that you maintain a proper JSON format. "propertySource": { "source": "tags.${tagName}.allowedValues.*.value" }, + "shouldValidate": true, + "validation": { + "required": true + }, "dependency": { "type": "and", "values": [ @@ -244,6 +248,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 631220e8..0fa8c5f5 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -1063,6 +1063,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -1107,6 +1111,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 951767f0..d9313d4b 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -548,6 +548,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -592,6 +596,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -1071,6 +1076,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -1115,6 +1124,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -1576,6 +1586,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -1620,6 +1634,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -2081,6 +2096,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -2125,6 +2144,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -2586,6 +2606,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -2630,6 +2654,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -2996,6 +3021,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -3040,6 +3069,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -3419,6 +3449,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -3463,6 +3497,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -3834,6 +3869,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -3878,6 +3917,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -4258,6 +4298,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -4302,6 +4346,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -4690,6 +4735,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -4734,6 +4783,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -5122,6 +5172,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -5166,6 +5220,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -5554,6 +5609,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -5598,6 +5657,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -6068,6 +6128,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -6112,6 +6176,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -6494,6 +6559,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -6538,6 +6607,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, @@ -6676,6 +6746,10 @@ making sure that you maintain a proper JSON format. "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -6720,6 +6794,7 @@ making sure that you maintain a proper JSON format. }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } }, diff --git a/properties_pane/view_level/viewLevelConfig.json b/properties_pane/view_level/viewLevelConfig.json index 8a1dc763..ef037738 100644 --- a/properties_pane/view_level/viewLevelConfig.json +++ b/properties_pane/view_level/viewLevelConfig.json @@ -134,6 +134,10 @@ "exist": true } ] + }, + "shouldValidate": true, + "validation": { + "required": true } }, { @@ -178,6 +182,7 @@ }, "shouldValidate": true, "validation": { + "required": true, "regex": "^.{0,256}$" } },