{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/overlay-json/latest.json",
  "title": "OpenAPI Overlay Document v1.X",
  "x-lintel": {
    "source": "https://www.schemastore.org/openapi-overlay-1.X.json",
    "sourceSha256": "e69f09b9370de2f3d88454bf42d6c1d32af25b6416a9bf3e3ba1e44bc89adc14",
    "fileMatch": [
      "overlay.json",
      "overlay.yml",
      "overlay.yaml",
      "*.overlay.json",
      "*.overlay.yml",
      "*.overlay.yaml"
    ],
    "parsers": [
      "json",
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "overlay": {
      "pattern": "^1\\.(0|1)\\.",
      "type": "string"
    }
  },
  "required": [
    "overlay"
  ],
  "allOf": [
    {
      "if": {
        "properties": {
          "overlay": {
            "pattern": "^1\\.0\\.",
            "type": "string"
          }
        }
      },
      "then": {
        "$ref": "https://catalog.lintel.tools/schemas/schemastore/overlay-json/_shared/latest--2026-04-01.json"
      }
    },
    {
      "if": {
        "properties": {
          "overlay": {
            "pattern": "^1\\.1\\.",
            "type": "string"
          }
        }
      },
      "then": {
        "$ref": "https://catalog.lintel.tools/schemas/schemastore/overlay-json/_shared/latest--2026-04-01.json"
      }
    }
  ]
}
