{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "SectionAddress": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "section"
        },
        "sectionId": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "kind",
        "sectionId"
      ]
    }
  },
  "operationId": "headerFooters.get",
  "schemas": {
    "input": {
      "type": "object",
      "properties": {
        "target": {
          "type": "object",
          "properties": {
            "kind": {
              "const": "headerFooterSlot"
            },
            "section": {
              "$ref": "#/$defs/SectionAddress"
            },
            "headerFooterKind": {
              "enum": [
                "header",
                "footer"
              ]
            },
            "variant": {
              "enum": [
                "default",
                "first",
                "even"
              ]
            }
          },
          "additionalProperties": false,
          "required": [
            "kind",
            "section",
            "headerFooterKind",
            "variant"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "target"
      ]
    },
    "output": {
      "type": "object",
      "properties": {
        "section": {
          "$ref": "#/$defs/SectionAddress"
        },
        "sectionIndex": {
          "type": "integer",
          "minimum": 0
        },
        "kind": {
          "enum": [
            "header",
            "footer"
          ]
        },
        "variant": {
          "enum": [
            "default",
            "first",
            "even"
          ]
        },
        "refId": {
          "type": [
            "string",
            "null"
          ]
        },
        "isExplicit": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "required": [
        "section",
        "sectionIndex",
        "kind",
        "variant",
        "isExplicit"
      ]
    }
  }
}
