From a252b5967df021c32b38b16e2bd3a2d3fd24c639 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 10:56:36 +0200 Subject: [PATCH 1/7] HCK-10339: Override config --- .../entity_level/entityLevelConfig.json | 161 ++++++++++++++++++ 1 file changed, 161 insertions(+) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index bf349a0..d65cde5 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -481,6 +481,167 @@ making sure that you maintain a proper JSON format. "value": "response" } }, + { + "fieldName": "$ref", + "fieldKeyword": "refPath", + "shouldValidate": true, + "fieldTooltip": "ref path", + "fieldType": "details", + "template": "selectPolyglotDefinition", + "changeAction": "changePolyglotReferencePath", + "dependency": { + "type": "and", + "values": [ + { + "key": "refPath", + "exist": true + }, + { + "key": "refType", + "value": "polyglot" + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + }, + "disabledOnCondition": [ + { + "type": "and", + "values": [ + { + "env": "browser" + }, + { + "type": "or", + "values": [ + { + "key": "refType", + "value": "external" + }, + { + "key": "refType", + "value": "polyglot" + } + ] + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + } + ], + "enableForReference": true + }, + { + "propertyName": "$ref", + "propertyKeyword": "refPath", + "propertyValidate": false, + "propertyType": "referencePath", + "enableForReference": true, + "readonly": false, + "dependency": { + "type": "and", + "values": [ + { + "type": "or", + "values": [ + { + "key": "refPath", + "exist": false + }, + { + "key": "refType", + "value": "model" + } + ] + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + } + }, + { + "fieldName": "$ref", + "fieldKeyword": "refPath", + "shouldValidate": true, + "fieldTooltip": "Edit ref path", + "fieldType": "details", + "template": "showExternalDefinition", + "dependency": { + "type": "and", + "values": [ + { + "key": "refPath", + "exist": true + }, + { + "key": "refType", + "value": "external" + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + }, + "enableForReference": true, + "changeAction": "changeReferencePath" + }, + { + "fieldName": "Reference description", + "fieldKeyword": "refDescription", + "shouldValidate": false, + "fieldTooltip": "This description is specific to this instance of the definition", + "skipTooltipPrefix": true, + "fieldType": "details", + "template": "textarea", + "changeAction": "changeCollectionProperty", + "valueType": "string", + "enableForReference": true, + "dependency": { + "type": "and", + "values": [ + { + "key": "type", + "value": "reference" + }, + { + "type": "not", + "values": [ + { + "key": "entityType", + "value": "response" + } + ] + } + ] + } + }, { "propertyKeyword": "additionalProperties", "propertyName": "Additional Properties", From f728d7a1553357f97b88f5ba7039ac900891307d Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 15:13:18 +0200 Subject: [PATCH 2/7] HCK-10339: Simplify config --- .../entity_level/entityLevelConfig.json | 156 +----------------- 1 file changed, 1 insertion(+), 155 deletions(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index d65cde5..7da7716 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -484,163 +484,9 @@ making sure that you maintain a proper JSON format. { "fieldName": "$ref", "fieldKeyword": "refPath", - "shouldValidate": true, "fieldTooltip": "ref path", "fieldType": "details", - "template": "selectPolyglotDefinition", - "changeAction": "changePolyglotReferencePath", - "dependency": { - "type": "and", - "values": [ - { - "key": "refPath", - "exist": true - }, - { - "key": "refType", - "value": "polyglot" - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - }, - "disabledOnCondition": [ - { - "type": "and", - "values": [ - { - "env": "browser" - }, - { - "type": "or", - "values": [ - { - "key": "refType", - "value": "external" - }, - { - "key": "refType", - "value": "polyglot" - } - ] - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - } - ], - "enableForReference": true - }, - { - "propertyName": "$ref", - "propertyKeyword": "refPath", - "propertyValidate": false, - "propertyType": "referencePath", - "enableForReference": true, - "readonly": false, - "dependency": { - "type": "and", - "values": [ - { - "type": "or", - "values": [ - { - "key": "refPath", - "exist": false - }, - { - "key": "refType", - "value": "model" - } - ] - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - } - }, - { - "fieldName": "$ref", - "fieldKeyword": "refPath", - "shouldValidate": true, - "fieldTooltip": "Edit ref path", - "fieldType": "details", - "template": "showExternalDefinition", - "dependency": { - "type": "and", - "values": [ - { - "key": "refPath", - "exist": true - }, - { - "key": "refType", - "value": "external" - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - }, - "enableForReference": true, - "changeAction": "changeReferencePath" - }, - { - "fieldName": "Reference description", - "fieldKeyword": "refDescription", - "shouldValidate": false, - "fieldTooltip": "This description is specific to this instance of the definition", - "skipTooltipPrefix": true, - "fieldType": "details", - "template": "textarea", - "changeAction": "changeCollectionProperty", - "valueType": "string", - "enableForReference": true, - "dependency": { - "type": "and", - "values": [ - { - "key": "type", - "value": "reference" - }, - { - "type": "not", - "values": [ - { - "key": "entityType", - "value": "response" - } - ] - } - ] - } + "disabled": true }, { "propertyKeyword": "additionalProperties", From cd9a899689accbeca28dd19242368a0b2569f2eb Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 15:28:00 +0200 Subject: [PATCH 3/7] HCK-10339: Hide property --- properties_pane/entity_level/entityLevelConfig.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 7da7716..02d67b7 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -482,9 +482,7 @@ making sure that you maintain a proper JSON format. } }, { - "fieldName": "$ref", "fieldKeyword": "refPath", - "fieldTooltip": "ref path", "fieldType": "details", "disabled": true }, From 5304abd20dda648b2ecc262254900d1d7e616d50 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 15:42:12 +0200 Subject: [PATCH 4/7] HCK-10339: Hide property --- properties_pane/entity_level/entityLevelConfig.json | 1 - 1 file changed, 1 deletion(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 02d67b7..a6d2dc4 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -483,7 +483,6 @@ making sure that you maintain a proper JSON format. }, { "fieldKeyword": "refPath", - "fieldType": "details", "disabled": true }, { From 7292e6f74b663a69b0af40e0c1055546ea6be99b Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 15:42:52 +0200 Subject: [PATCH 5/7] HCK-10339: Hide property --- properties_pane/entity_level/entityLevelConfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index a6d2dc4..64fda28 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -483,7 +483,7 @@ making sure that you maintain a proper JSON format. }, { "fieldKeyword": "refPath", - "disabled": true + "hidden": true }, { "propertyKeyword": "additionalProperties", From 5490dbbf71a6dd7ae141cb9d047bd3cd5a897cb6 Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 15:45:42 +0200 Subject: [PATCH 6/7] HCK-10339: Use propertyKeyword instead of fieldKeyword --- properties_pane/entity_level/entityLevelConfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 64fda28..9f1fefb 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -482,7 +482,7 @@ making sure that you maintain a proper JSON format. } }, { - "fieldKeyword": "refPath", + "propertyKeyword": "refPath", "hidden": true }, { From bd035734cb668580c48981c0451753a9532a625c Mon Sep 17 00:00:00 2001 From: yevhenii-moroziuk Date: Wed, 12 Mar 2025 17:21:12 +0200 Subject: [PATCH 7/7] HCK-10339: Restore important props --- properties_pane/entity_level/entityLevelConfig.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 9f1fefb..086b3b2 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -482,7 +482,9 @@ making sure that you maintain a proper JSON format. } }, { + "propertyName": "$ref", "propertyKeyword": "refPath", + "propertyType": "details", "hidden": true }, {