Skip to content

Commit 01d6577

Browse files
committed
simplify ConnectorEndpoint definition
Instead of using `oneOf` with two different object types just combine it into one definition.
1 parent 887d806 commit 01d6577

1 file changed

Lines changed: 21 additions & 24 deletions

File tree

openapi/openapi.yaml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5591,31 +5591,28 @@ components:
55915591
- SPEECH_BUBBLE
55925592
- INTERNAL_STORAGE
55935593
ConnectorEndpoint:
5594+
type: object
55945595
description: Stores canvas location for a connector start/end point.
5595-
oneOf:
5596-
- type: object
5597-
properties:
5598-
endpointNodeId:
5599-
type: string
5600-
description: Node ID that this endpoint attaches to.
5601-
position:
5602-
$ref: "#/components/schemas/Vector"
5603-
description: The position of the endpoint relative to the node.
5604-
- type: object
5605-
properties:
5606-
endpointNodeId:
5607-
type: string
5608-
description: Node ID that this endpoint attaches to.
5609-
magnet:
5610-
type: string
5611-
description: The magnet type is a string enum.
5612-
enum:
5613-
- AUTO
5614-
- TOP
5615-
- BOTTOM
5616-
- LEFT
5617-
- RIGHT
5618-
- CENTER
5596+
properties:
5597+
endpointNodeId:
5598+
type: string
5599+
description: Node ID that this endpoint attaches to.
5600+
position:
5601+
$ref: "#/components/schemas/Vector"
5602+
description: The position of the endpoint relative to the node. Not present if
5603+
magnet is present
5604+
magnet:
5605+
type: string
5606+
description: The magnet type is a string enum. Not present if position is present.
5607+
enum:
5608+
- AUTO
5609+
- TOP
5610+
- BOTTOM
5611+
- LEFT
5612+
- RIGHT
5613+
- CENTER
5614+
required:
5615+
- endpointNodeId
56195616
ConnectorLineType:
56205617
type: string
56215618
description: Connector line type.

0 commit comments

Comments
 (0)