From ee41d34e067eee348186fe1760885c0af52e6d67 Mon Sep 17 00:00:00 2001 From: Taras Dubyk Date: Thu, 12 Dec 2024 17:36:31 +0200 Subject: [PATCH 1/2] allow output types fields as entity children --- properties_pane/defaultData.json | 3 +-- types/input.json | 10 ---------- types/interface.json | 10 ---------- types/type.json | 10 ---------- types/union.json | 10 ---------- 5 files changed, 1 insertion(+), 42 deletions(-) diff --git a/properties_pane/defaultData.json b/properties_pane/defaultData.json index 58c66ed..bb21526 100644 --- a/properties_pane/defaultData.json +++ b/properties_pane/defaultData.json @@ -15,10 +15,9 @@ }, "collection": { "collectionName": "newOperation", - "entityType": "request", "operationType": "Query", "isActivated": true, - "childType": "input" + "childType": "object" }, "nestedCollection": { "collectionName": "Response", diff --git a/types/input.json b/types/input.json index cf34401..78f89fc 100644 --- a/types/input.json +++ b/types/input.json @@ -34,15 +34,5 @@ "scalar" ] } - }, - "dependency": { - "type": "not", - "values": [ - { - "level": "root", - "key": "entityType", - "value": "response" - } - ] } } diff --git a/types/interface.json b/types/interface.json index c47cd2a..ad8e6f6 100644 --- a/types/interface.json +++ b/types/interface.json @@ -36,15 +36,5 @@ "scalar" ] } - }, - "dependency": { - "type": "not", - "values": [ - { - "level": "root", - "key": "entityType", - "value": "request" - } - ] } } diff --git a/types/type.json b/types/type.json index cab2eec..a71983f 100644 --- a/types/type.json +++ b/types/type.json @@ -130,15 +130,5 @@ "parameter (cookie)" ] } - }, - "dependency": { - "type": "not", - "values": [ - { - "level": "root", - "key": "entityType", - "value": "request" - } - ] } } diff --git a/types/union.json b/types/union.json index 44b1dfb..bc00b14 100644 --- a/types/union.json +++ b/types/union.json @@ -27,15 +27,5 @@ "object" ] } - }, - "dependency": { - "type": "not", - "values": [ - { - "level": "root", - "key": "entityType", - "value": "request" - } - ] } } From b7345033a7dc015d333ec3c46ba5cd8817fd8335 Mon Sep 17 00:00:00 2001 From: Taras Dubyk Date: Thu, 12 Dec 2024 17:48:59 +0200 Subject: [PATCH 2/2] remove request dependencies --- .../entity_level/entityLevelConfig.json | 31 ++----------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/properties_pane/entity_level/entityLevelConfig.json b/properties_pane/entity_level/entityLevelConfig.json index 1f714c7..d0159b6 100644 --- a/properties_pane/entity_level/entityLevelConfig.json +++ b/properties_pane/entity_level/entityLevelConfig.json @@ -124,11 +124,7 @@ making sure that you maintain a proper JSON format. { "propertyName": "Operation name", "propertyKeyword": "collectionName", - "propertyType": "text", - "dependency": { - "key": "entityType", - "value": "request" - } + "propertyType": "text" }, { "propertyName": "Response name", @@ -153,11 +149,7 @@ making sure that you maintain a proper JSON format. "Query", "Mutation", "Subscription" - ], - "dependency": { - "key": "entityType", - "value": "request" - } + ] }, { "propertyKeyword": "additionalProperties", @@ -187,25 +179,6 @@ making sure that you maintain a proper JSON format. "template": "textarea", "markdown": false }, - { - "propertyName": "schema", - "propertyKeyword": "pathItemSchema", - "propertyType": "fieldList", - "template": "orderedList", - "dependency": { - "type": "and", - "values": [ - { - "key": "collectionName", - "value": "$ref" - }, - { - "key": "entityType", - "value": "request" - } - ] - } - }, { "propertyName": "Comments", "propertyKeyword": "comments",