{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/datadog-service-definition/latest.json",
  "title": "Service Definition Versions [v1, v2, v2.1, v2.2, v3]",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/DataDog/schema/main/service-catalog/service.schema.json",
    "sourceSha256": "aacbb3ea0d055671aff9a847febe0f0d47c70986520877804507c0493c14a42b",
    "fileMatch": [
      "service.datadog.yaml",
      "service.datadog.yml",
      "service.datadog.json"
    ],
    "parsers": [
      "json",
      "yaml"
    ]
  },
  "oneOf": [
    {
      "allOf": [
        {
          "properties": {
            "schema-version": {
              "const": "v1"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/datadog-service-definition/_shared/latest--schema.json"
        }
      ]
    },
    {
      "allOf": [
        {
          "properties": {
            "schema-version": {
              "const": "v2"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/datadog-service-definition/_shared/latest--schema.json"
        }
      ]
    },
    {
      "allOf": [
        {
          "properties": {
            "schema-version": {
              "const": "v2.1"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/datadog-service-definition/_shared/latest--schema.json"
        }
      ]
    },
    {
      "allOf": [
        {
          "properties": {
            "schema-version": {
              "const": "v2.2"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/datadog-service-definition/_shared/latest--schema.json"
        }
      ]
    },
    {
      "allOf": [
        {
          "properties": {
            "apiVersion": {
              "const": "v3"
            },
            "kind": {
              "const": "service"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/datadog-service-definition/_shared/latest--service.schema.json"
        }
      ]
    },
    {
      "allOf": [
        {
          "properties": {
            "apiVersion": {
              "const": "v3"
            },
            "kind": {
              "const": "queue"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/datadog-service-definition/_shared/latest--queue.schema.json"
        }
      ]
    },
    {
      "allOf": [
        {
          "properties": {
            "apiVersion": {
              "const": "v3"
            },
            "kind": {
              "const": "datastore"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/datadog-service-definition/_shared/latest--datastore.schema.json"
        }
      ]
    },
    {
      "allOf": [
        {
          "properties": {
            "apiVersion": {
              "const": "v3"
            },
            "kind": {
              "const": "system"
            }
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/datadog-service-definition/_shared/latest--system.schema.json"
        }
      ]
    }
  ]
}
