Skip to content

Commit

Permalink
HCK-9099: allow output types fields as entity children (#20)
Browse files Browse the repository at this point in the history
* allow output types fields as entity children

* remove request dependencies

---------

Co-authored-by: Vitalii Bedletskyi <[email protected]>
  • Loading branch information
taras-dubyk and VitaliiBedletskyi authored Dec 19, 2024
1 parent c9eda21 commit e9fef89
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 71 deletions.
3 changes: 1 addition & 2 deletions properties_pane/defaultData.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
},
"collection": {
"collectionName": "newOperation",
"entityType": "request",
"operationType": "Query",
"isActivated": true,
"childType": "input"
"childType": "object"
},
"nestedCollection": {
"collectionName": "Response",
Expand Down
31 changes: 2 additions & 29 deletions properties_pane/entity_level/entityLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -153,11 +149,7 @@ making sure that you maintain a proper JSON format.
"Query",
"Mutation",
"Subscription"
],
"dependency": {
"key": "entityType",
"value": "request"
}
]
},
{
"propertyKeyword": "additionalProperties",
Expand Down Expand Up @@ -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",
Expand Down
10 changes: 0 additions & 10 deletions types/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,5 @@
"scalar"
]
}
},
"dependency": {
"type": "not",
"values": [
{
"level": "root",
"key": "entityType",
"value": "response"
}
]
}
}
10 changes: 0 additions & 10 deletions types/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,5 @@
"scalar"
]
}
},
"dependency": {
"type": "not",
"values": [
{
"level": "root",
"key": "entityType",
"value": "request"
}
]
}
}
10 changes: 0 additions & 10 deletions types/type.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,5 @@
"parameter (cookie)"
]
}
},
"dependency": {
"type": "not",
"values": [
{
"level": "root",
"key": "entityType",
"value": "request"
}
]
}
}
10 changes: 0 additions & 10 deletions types/union.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,5 @@
"object"
]
}
},
"dependency": {
"type": "not",
"values": [
{
"level": "root",
"key": "entityType",
"value": "request"
}
]
}
}

0 comments on commit e9fef89

Please sign in to comment.