{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "InlineAnchor": {
      "type": "object",
      "properties": {
        "start": {
          "$ref": "#/$defs/Position"
        },
        "end": {
          "$ref": "#/$defs/Position"
        }
      },
      "additionalProperties": false,
      "required": [
        "start",
        "end"
      ]
    },
    "Position": {
      "type": "object",
      "properties": {
        "blockId": {
          "type": "string"
        },
        "offset": {
          "type": "integer"
        }
      },
      "additionalProperties": false,
      "required": [
        "blockId",
        "offset"
      ]
    }
  },
  "operationId": "hyperlinks.get",
  "schemas": {
    "input": {
      "type": "object",
      "properties": {
        "target": {
          "type": "object",
          "properties": {
            "kind": {
              "const": "inline"
            },
            "nodeType": {
              "const": "hyperlink"
            },
            "anchor": {
              "$ref": "#/$defs/InlineAnchor"
            }
          },
          "additionalProperties": false,
          "required": [
            "kind",
            "nodeType",
            "anchor"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "target"
      ]
    },
    "output": {
      "type": "object",
      "properties": {
        "address": {
          "type": "object",
          "properties": {
            "kind": {
              "const": "inline"
            },
            "nodeType": {
              "const": "hyperlink"
            },
            "anchor": {
              "$ref": "#/$defs/InlineAnchor"
            }
          },
          "additionalProperties": false,
          "required": [
            "kind",
            "nodeType",
            "anchor"
          ]
        },
        "properties": {
          "type": "object",
          "properties": {
            "href": {
              "type": "string"
            },
            "anchor": {
              "type": "string"
            },
            "docLocation": {
              "type": "string"
            },
            "tooltip": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "rel": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "text": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "address",
        "properties"
      ]
    }
  }
}
