From b473e0d4ff18f227c0dca0597d71ea6d74921615 Mon Sep 17 00:00:00 2001 From: Yevhenii Moroziuk Date: Mon, 10 Jun 2024 10:57:42 +0300 Subject: [PATCH] HCK-6364: Min and Max Properties fields should only be available for types Map and Object (#68) * HCK-6364: fix field level config * HCK-6364: fix typo in localization --- localization/en.json | 2 +- .../field_level/fieldLevelConfig.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/localization/en.json b/localization/en.json index c355d66..13f51e7 100644 --- a/localization/en.json +++ b/localization/en.json @@ -16,7 +16,7 @@ "TOOLBAR___ADD_ATTRIBUTE": "Add Column", "TOOLBAR___INSERT_FIELD": "Insert Column", "TOOLBAR___APPEND_FIELD": "Append Column", - "TOOLBAR___TOGGLE_FIELD_DETAILS": "Toogle field details", + "TOOLBAR___TOGGLE_FIELD_DETAILS": "Toggle field details", "TOOLBAR___SHOW_FOREIGN_MASTER": "Toggle foreign master", "TOOLBAR___SHOW_MODEL_VIEW": "Toggle model views", "TOOLBAR___DISTRIBUTE_ORTHOGONALLY": "Distribute tables orthogonally", diff --git a/properties_pane/field_level/fieldLevelConfig.json b/properties_pane/field_level/fieldLevelConfig.json index 8750d4b..c89cd7c 100644 --- a/properties_pane/field_level/fieldLevelConfig.json +++ b/properties_pane/field_level/fieldLevelConfig.json @@ -772,6 +772,24 @@ making sure that you maintain a proper JSON format. "format", "enum", "sample", + { + "propertyName": "Min Properties", + "propertyKeyword": "minProperties", + "propertyType": "numeric", + "dependency": { + "key": "subtype", + "value": "object" + } + }, + { + "propertyName": "Max Properties", + "propertyKeyword": "maxProperties", + "propertyType": "numeric", + "dependency": { + "key": "subtype", + "value": "object" + } + }, { "propertyName": "Remarks", "propertyKeyword": "comments",