{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-connector-with-links-schema.json",
  "title": "ConnectorWithLinks",
  "description": "Contains the result data.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-connectors-api-openapi.yml#/components/schemas/ConnectorWithLinks",
  "type": "object",
  "properties": {
    "captions": {
      "type": "array",
      "description": "Blocks of text you want to display on the connector.",
      "items": {
        "$ref": "#/$defs/Caption"
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the connector was created. <br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
    },
    "createdBy": {
      "$ref": "#/$defs/createdBy"
    },
    "endItem": {
      "$ref": "#/$defs/ItemConnectionWithLinks"
    },
    "id": {
      "type": "string",
      "description": "Unique identifier (ID) of a connector."
    },
    "isSupported": {
      "type": "boolean",
      "description": "Indicates whether the connector is supported at the moment. If this parameter returns `false`, we do not support the connector at the moment. We do not allow updates for unsupported connectors and we might not return all data about the connector, such as intermediate points and connection points to the canvas."
    },
    "links": {
      "$ref": "#/$defs/SelfLink"
    },
    "modifiedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the connector was last modified. <br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
    },
    "modifiedBy": {
      "$ref": "#/$defs/modifiedBy"
    },
    "shape": {
      "type": "string",
      "default": "curved",
      "description": "The path type of the connector line, defines curvature. Default: curved.",
      "enum": [
        "straight",
        "elbowed",
        "curved"
      ]
    },
    "startItem": {
      "$ref": "#/$defs/ItemConnectionWithLinks"
    },
    "style": {
      "$ref": "#/$defs/ConnectorStyle"
    },
    "type": {
      "type": "string",
      "description": "Type of board object that is returned."
    }
  },
  "required": [
    "id"
  ],
  "$defs": {
    "Caption": {
      "type": "object",
      "description": "Contains the connector's caption data, such as content and its position.",
      "properties": {
        "content": {
          "type": "string",
          "description": "The text you want to display on the connector. Supports inline HTML tags.",
          "maxLength": 200,
          "minLength": 0
        },
        "position": {
          "type": "string",
          "description": "The relative position of the text on the connector, in percentage, minimum 0%, maximum 100%. With 50% value, the text will be placed in the middle of the connector line. Default: 50%"
        },
        "textAlignVertical": {
          "type": "string",
          "description": "The vertical position of the text on the connector. Default: middle",
          "enum": [
            "top",
            "middle",
            "bottom"
          ]
        }
      },
      "required": [
        "content"
      ]
    },
    "ConnectorStyle": {
      "type": "object",
      "description": "Contains information about the style of a connector, such as the color or caption font size",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex value representing the color for the captions on the connector. Default: `#1a1a1a`"
        },
        "endStrokeCap": {
          "type": "string",
          "description": "The decoration cap of the connector end, like an arrow or circle. Default: stealth.",
          "enum": [
            "none",
            "stealth",
            "rounded_stealth",
            "diamond",
            "filled_diamond",
            "oval",
            "filled_oval",
            "arrow",
            "triangle",
            "filled_triangle",
            "erd_one",
            "erd_many",
            "erd_only_one",
            "erd_zero_or_one",
            "erd_one_or_many",
            "erd_zero_or_many",
            "unknown"
          ]
        },
        "fontSize": {
          "type": "string",
          "description": "Defines the font size, in dp, for the captions on the connector. Default: 14",
          "maximum": 288,
          "minimum": 10
        },
        "startStrokeCap": {
          "type": "string",
          "description": "The decoration cap of the connector end, like an arrow or circle. Default: none.",
          "enum": [
            "none",
            "stealth",
            "rounded_stealth",
            "diamond",
            "filled_diamond",
            "oval",
            "filled_oval",
            "arrow",
            "triangle",
            "filled_triangle",
            "erd_one",
            "erd_many",
            "erd_only_one",
            "erd_zero_or_one",
            "erd_one_or_many",
            "erd_zero_or_many",
            "unknown"
          ]
        },
        "strokeColor": {
          "type": "string",
          "description": "Hex value of the color of the connector line. Default: #000000."
        },
        "strokeStyle": {
          "type": "string",
          "description": "The stroke pattern of the connector line. Default: normal.",
          "enum": [
            "normal",
            "dotted",
            "dashed"
          ]
        },
        "strokeWidth": {
          "type": "string",
          "description": "The thickness of the connector line, in dp. Default: 1.0.",
          "maximum": 24,
          "minimum": 1
        },
        "textOrientation": {
          "type": "string",
          "description": "The captions orientation relatively to the connector line curvature. Default: aligned.",
          "enum": [
            "horizontal",
            "aligned"
          ]
        }
      }
    },
    "ItemConnectionWithLinks": {
      "type": "object",
      "description": "The starting point of the connector.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the item the connector is attached to."
        },
        "links": {
          "$ref": "#/$defs/SelfLink"
        },
        "position": {
          "$ref": "#/$defs/RelativeOffset"
        }
      }
    },
    "RelativeOffset": {
      "type": "object",
      "description": "The relative position of the point on an item where the connector is attached. Position with x=0% and y=0% correspond to the top-left corner of the item, x=100% and y=100% correspond to the right-bottom corner.",
      "properties": {
        "x": {
          "type": "string",
          "description": "X-axis relative coordinate of the location where the connector connects with an item, in percentage, minimum 0%, maximum 100%."
        },
        "y": {
          "type": "string",
          "description": "Y-axis relative coordinate of the location where the connector connects with an item, in percentage, minimum 0%, maximum 100%."
        }
      }
    },
    "SelfLink": {
      "type": "object",
      "description": "Contains applicable links for the current object.",
      "properties": {
        "self": {
          "type": "string",
          "description": "Link to obtain more information about the current object."
        }
      }
    },
    "createdBy": {
      "type": "object",
      "description": "Contains information about the user who created the item.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the user."
        },
        "type": {
          "type": "string",
          "description": "Indicates the type of object returned. In this case, `type` returns `user`."
        }
      }
    },
    "modifiedBy": {
      "type": "object",
      "description": "Contains information about the user who last modified the item.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the user."
        },
        "type": {
          "type": "string",
          "description": "Indicates the type of object returned. In this case, `type` returns `user`."
        }
      }
    }
  }
}