{
  "$comment": "Adapted from https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/extent.yaml",
  "description": "The extent of the features in the collection. In the Core only spatial and temporal\nextents are specified. Extensions may add additional members to represent other\nextents, for example, thermal or pressure ranges.\n\nAn array of extents is provided for each extent type (spatial, temporal). The first item\nin the array describes the overall extent of the data. All subsequent items describe more\nprecise extents, e.g., to identify clusters of data. Clients only interested in the\noverall extent will only need to access the first extent in the array.",
  "type": "object",
  "properties": {
    "spatial": {
      "description": "The spatial extent of the features in the collection.",
      "type": "object",
      "properties": {
        "bbox": {
          "type": "array",
          "items": {
            "$ref": "https://opengeospatial.github.io/bblocks/annotated-schemas/geo/common/data_types/bounding_box/schema.json"
          }
        },
        "crs": {
          "description": "Coordinate reference system of the coordinates in the spatial extent\n(property `bbox`). The default reference system is WGS 84 longitude/latitude.\nIn the Core the only other supported coordinate reference system is\nWGS 84 longitude/latitude/ellipsoidal height for coordinates with height.\nExtensions may support additional coordinate reference systems and add\nadditional enum values.",
          "type": "string",
          "enum": [
            "http://www.opengis.net/def/crs/OGC/1.3/CRS84",
            "http://www.opengis.net/def/crs/OGC/0/CRS84h"
          ],
          "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84"
        }
      }
    },
    "temporal": {
      "description": "The temporal extent of the features in the collection.",
      "type": "object",
      "properties": {
        "interval": {
          "description": "One or more time intervals that describe the temporal extent of the dataset.\nIn the Core only a single time interval is supported.\n\nExtensions may support multiple intervals.\nThe first time interval describes the overall\ntemporal extent of the data. All subsequent time intervals describe\nmore precise time intervals, e.g., to identify clusters of data.\nClients only interested in the overall temporal extent will only need\nto access the first time interval in the array (a pair of lower and upper\nbound instants).",
          "type": "array",
          "minItems": 1,
          "items": {
            "description": "Begin and end times of the time interval. The timestamps are in the\ntemporal coordinate reference system specified in `trs`. By default\nthis is the Gregorian calendar.\n\nThe value `null` at start or end is supported and indicates a half-bounded interval.",
            "type": "array",
            "minItems": 2,
            "maxItems": 2,
            "items": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "example": [
              "2011-11-11T12:22:11Z",
              null
            ]
          }
        },
        "trs": {
          "description": "Coordinate reference system of the coordinates in the temporal extent\n(property `interval`). The default reference system is the Gregorian calendar.\nIn the Core this is the only supported temporal coordinate reference system.\nExtensions may support additional temporal coordinate reference systems and add\nadditional enum values.",
          "type": "string",
          "enum": [
            "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"
          ],
          "default": "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"
        }
      }
    }
  }
}