{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ecmwf/main/json-schema/ecmwf-collections-schema.json",
  "title": "Collections",
  "description": "https://github.com/radiantearth/stac-api-spec/tree/v1.0.0/ogcapi-features#endpoints\nhttps://github.com/radiantearth/stac-api-spec/tree/v1.0.0/ogcapi-features#collections-collections",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ecmwf-data-stores-catalogue-openapi.yml#/components/schemas/Collections",
  "properties": {
    "links": {
      "$ref": "#/$defs/stac_pydantic__api__links__Links"
    },
    "collections": {
      "items": {
        "$ref": "#/$defs/Collection"
      },
      "type": "array",
      "title": "Collections"
    },
    "numberMatched": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Numbermatched"
    },
    "numberReturned": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Numberreturned"
    }
  },
  "type": "object",
  "required": [
    "links",
    "collections"
  ],
  "$defs": {
    "Asset": {
      "properties": {
        "href": {
          "type": "string",
          "minLength": 1,
          "title": "Href"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "roles": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Roles"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "href"
      ],
      "title": "Asset",
      "description": "https://github.com/radiantearth/stac-spec/blob/v1.0.0/item-spec/item-spec.md#asset-object"
    },
    "Collection": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "title": "Id"
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "title": "Description"
        },
        "stac_version": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
          "title": "Stac Version",
          "default": "1.0.0"
        },
        "links": {
          "$ref": "#/$defs/stac_pydantic__links__Links"
        },
        "stac_extensions": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "minLength": 1,
                "format": "uri"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Stac Extensions",
          "default": []
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "type": {
          "type": "string",
          "const": "Collection",
          "title": "Type"
        },
        "assets": {
          "anyOf": [
            {
              "additionalProperties": {
                "$ref": "#/$defs/Asset"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Assets"
        },
        "license": {
          "type": "string",
          "minLength": 1,
          "title": "License"
        },
        "extent": {
          "$ref": "#/$defs/Extent"
        },
        "keywords": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Keywords"
        },
        "providers": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/Provider"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Providers"
        },
        "summaries": {
          "anyOf": [
            {
              "additionalProperties": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/Range"
                  },
                  {
                    "items": {},
                    "type": "array"
                  },
                  {
                    "additionalProperties": true,
                    "type": "object"
                  }
                ]
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Summaries"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "id",
        "description",
        "links",
        "type",
        "license",
        "extent"
      ],
      "title": "Collection",
      "description": "https://github.com/radiantearth/stac-api-spec/tree/v1.0.0/ogcapi-features#collection-collectionscollectionid"
    },
    "Extent": {
      "properties": {
        "spatial": {
          "$ref": "#/$defs/SpatialExtent"
        },
        "temporal": {
          "$ref": "#/$defs/TimeInterval"
        }
      },
      "type": "object",
      "required": [
        "spatial",
        "temporal"
      ],
      "title": "Extent",
      "description": "https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/collection-spec.md#extent-object"
    },
    "ItemsLink": {
      "properties": {
        "href": {
          "type": "string",
          "pattern": ".*\\/items(\\?.*)?\\b",
          "title": "Href"
        },
        "rel": {
          "type": "string",
          "enum": [
            "self",
            "items"
          ],
          "title": "Rel"
        },
        "type": {
          "type": "string",
          "const": "application/geo+json",
          "title": "Type",
          "default": "application/geo+json"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "method": {
          "type": "string",
          "enum": [
            "GET",
            "POST"
          ],
          "title": "Method",
          "default": "GET"
        },
        "headers": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Headers"
        },
        "body": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Body"
        },
        "merge": {
          "type": "boolean",
          "title": "Merge",
          "default": false
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "href",
        "rel"
      ],
      "title": "ItemsLink"
    },
    "MimeTypes": {
      "type": "string",
      "enum": [
        "image/tiff; application=geotiff",
        "image/tiff; application=geotiff; profile=cloud-optimized",
        "image/jp2",
        "image/png",
        "image/jpeg",
        "application/geo+json",
        "application/geo+json-seq",
        "application/geopackage+sqlite3",
        "application/vnd.google-earth.kml+xml",
        "application/vnd.google-earth.kmz",
        "application/x-protobuf",
        "application/vnd.mapbox-vector-tile",
        "application/x-hdf",
        "application/x-hdf5",
        "application/xml",
        "application/json",
        "application/ndjson",
        "text/html",
        "text/plain",
        "application/vnd.oai.openapi+json;version=3.0",
        "application/vnd.oai.openapi;version=3.0",
        "application/schema+json",
        "application/pdf",
        "text/csv",
        "application/vnd.apache.parquet",
        "application/octet-stream"
      ],
      "title": "MimeTypes",
      "description": "https://github.com/radiantearth/stac-spec/blob/v1.0.0/item-spec/item-spec.md#media-types"
    },
    "PaginationLink": {
      "properties": {
        "href": {
          "type": "string",
          "minLength": 1,
          "title": "Href"
        },
        "rel": {
          "type": "string",
          "enum": [
            "next",
            "prev"
          ],
          "title": "Rel"
        },
        "type": {
          "anyOf": [
            {
              "$ref": "#/$defs/MimeTypes"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "method": {
          "type": "string",
          "enum": [
            "GET",
            "POST"
          ],
          "title": "Method",
          "default": "GET"
        },
        "headers": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Headers"
        },
        "body": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Body"
        },
        "merge": {
          "type": "boolean",
          "title": "Merge",
          "default": false
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "href",
        "rel"
      ],
      "title": "PaginationLink",
      "description": "https://github.com/radiantearth/stac-api-spec/blob/v1.0.0/item-search/README.md#pagination"
    },
    "Provider": {
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "title": "Name"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "roles": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Roles"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        }
      },
      "type": "object",
      "required": [
        "name"
      ],
      "title": "Provider",
      "description": "https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/collection-spec.md#provider-object"
    },
    "Range": {
      "properties": {
        "minimum": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ],
          "title": "Minimum"
        },
        "maximum": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "integer"
            },
            {
              "type": "string"
            }
          ],
          "title": "Maximum"
        }
      },
      "type": "object",
      "required": [
        "minimum",
        "maximum"
      ],
      "title": "Range",
      "description": "https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/collection-spec.md#stats-object"
    },
    "SearchLink": {
      "properties": {
        "href": {
          "type": "string",
          "pattern": ".*\\/search(\\?.*)?\\b",
          "title": "Href"
        },
        "rel": {
          "type": "string",
          "enum": [
            "self",
            "search",
            "next",
            "prev"
          ],
          "title": "Rel"
        },
        "type": {
          "type": "string",
          "const": "application/geo+json",
          "title": "Type",
          "default": "application/geo+json"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "method": {
          "type": "string",
          "enum": [
            "GET",
            "POST"
          ],
          "title": "Method",
          "default": "GET"
        },
        "headers": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Headers"
        },
        "body": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Body"
        },
        "merge": {
          "type": "boolean",
          "title": "Merge",
          "default": false
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "href",
        "rel"
      ],
      "title": "SearchLink",
      "description": "https://github.com/radiantearth/stac-api-spec/tree/v1.0.0/item-search#link-relations"
    },
    "SpatialExtent": {
      "properties": {
        "bbox": {
          "items": {
            "anyOf": [
              {
                "prefixItems": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  }
                ],
                "type": "array",
                "maxItems": 4,
                "minItems": 4
              },
              {
                "prefixItems": [
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      }
                    ]
                  }
                ],
                "type": "array",
                "maxItems": 6,
                "minItems": 6
              }
            ]
          },
          "type": "array",
          "title": "Bbox"
        }
      },
      "type": "object",
      "required": [
        "bbox"
      ],
      "title": "SpatialExtent",
      "description": "https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/collection-spec.md#spatial-extent-object"
    },
    "TimeInterval": {
      "properties": {
        "interval": {
          "items": {
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "array",
            "maxItems": 2,
            "minItems": 2
          },
          "type": "array",
          "minItems": 1,
          "title": "Interval"
        }
      },
      "type": "object",
      "required": [
        "interval"
      ],
      "title": "TimeInterval",
      "description": "https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/collection-spec.md#temporal-extent-object"
    },
    "stac_pydantic__api__links__Links": {
      "items": {
        "anyOf": [
          {
            "$ref": "#/$defs/SearchLink"
          },
          {
            "$ref": "#/$defs/PaginationLink"
          },
          {
            "$ref": "#/$defs/ItemsLink"
          },
          {
            "$ref": "#/$defs/stac_pydantic__links__Link"
          }
        ]
      },
      "type": "array",
      "title": "Links"
    },
    "stac_pydantic__links__Link": {
      "properties": {
        "href": {
          "type": "string",
          "minLength": 1,
          "title": "Href"
        },
        "rel": {
          "type": "string",
          "minLength": 1,
          "title": "Rel"
        },
        "type": {
          "anyOf": [
            {
              "$ref": "#/$defs/MimeTypes"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "href",
        "rel"
      ],
      "title": "Link",
      "description": "https://github.com/radiantearth/stac-spec/blob/v1.0.0/collection-spec/collection-spec.md#link-object"
    },
    "stac_pydantic__links__Links": {
      "items": {
        "$ref": "#/$defs/stac_pydantic__links__Link"
      },
      "type": "array",
      "title": "Links"
    }
  }
}