{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "STAC metadata with DCAT mappings for Aerial surveys",
  "anyOf": [
    {
      "allOf": [
        {
          "anyOf": [
            {
              "$ref": "https://ogcincubator.github.io/geodcat-ogcapi-records/build/annotated/geo/geodcat/stac/geodcat-stac-item/schema.json"
            },
            {
              "$ref": "https://ogcincubator.github.io/geodcat-ogcapi-records/build/annotated/geo/geodcat/stac/geodcat-stac-collection/schema.json"
            }
          ]
        },
        {
          "$ref": "https://ogcincubator.github.io/bblocks-aerial-survey/build/annotated/domain/aerial-survey/aerial-survey-metadata/schema.json"
        }
      ]
    }
  ],
  "properties": {
    "stac_extensions": {
      "type": "array",
      "contains": {
        "const": "https://stac-extensions.github.io/aerial-survey/v0.0.1/schema.json"
      }
    }
  }
}