{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/openapi-json/latest.json",
  "title": "OpenAPI Document v3.X",
  "x-lintel": {
    "source": "https://www.schemastore.org/openapi-3.X.json",
    "sourceSha256": "e7cad7c1bac86d653907efbdbaf4c1cbaef52a131ec0defbc98988066fbc7e56",
    "fileMatch": [
      "openapi.json",
      "openapi.yml",
      "openapi.yaml"
    ],
    "parsers": [
      "json",
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "openapi": {
      "pattern": "^3\\.[0-2]\\.",
      "type": "string"
    }
  },
  "required": [
    "openapi"
  ],
  "allOf": [
    {
      "if": {
        "properties": {
          "openapi": {
            "pattern": "^3\\.0\\.",
            "type": "string"
          }
        }
      },
      "then": {
        "$ref": "https://catalog.lintel.tools/schemas/schemastore/openapi-json/_shared/latest--2024-10-18.json"
      }
    },
    {
      "if": {
        "properties": {
          "openapi": {
            "pattern": "^3\\.1\\.",
            "type": "string"
          }
        }
      },
      "then": {
        "$ref": "https://catalog.lintel.tools/schemas/schemastore/openapi-json/_shared/latest--2025-09-15.json"
      }
    },
    {
      "if": {
        "properties": {
          "openapi": {
            "pattern": "^3\\.2\\.",
            "type": "string"
          }
        }
      },
      "then": {
        "$ref": "https://catalog.lintel.tools/schemas/schemastore/openapi-json/_shared/latest--2025-09-17.json"
      }
    }
  ]
}
