{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/common-catalog-data/latest.json",
  "title": "All Versions of the Common Catalog Schema",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/howlowck/common-catalog-schema/main/schema-versions.json",
    "sourceSha256": "d4dba09de10d35093e42c5c1c340239fd465c0e6b283a65eda152e6b296ae02d",
    "fileMatch": [
      "*.cat.json",
      "*.catalog.json",
      "*.cat.yml",
      "*.catalog.yml"
    ],
    "parsers": [
      "json",
      "yaml"
    ]
  },
  "type": "object",
  "oneOf": [
    {
      "allOf": [
        {
          "properties": {
            "version": {
              "const": "0.3.0"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/common-catalog-data/_shared/latest--schema-0.3.0.json"
        }
      ]
    },
    {
      "allOf": [
        {
          "properties": {
            "version": {
              "const": "0.2.1"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/common-catalog-data/_shared/latest--schema-0.2.1.json"
        }
      ]
    },
    {
      "description": "This is the fallback to the latest version (the first one in this schema) in case no version is specified.",
      "allOf": [
        {
          "oneOf": [
            {
              "properties": {
                "version": {
                  "type": "string",
                  "maxLength": 0
                }
              },
              "required": [
                "version"
              ],
              "type": "object"
            },
            {
              "not": {
                "properties": {
                  "version": {}
                },
                "required": [
                  "version"
                ],
                "type": "object"
              }
            }
          ]
        },
        {
          "$ref": "#/oneOf/0/allOf/1"
        }
      ]
    }
  ]
}
