{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-pagable-geometry-response-schema.json",
  "title": "PagableGeometryResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blacksky-geometries-api-openapi.yml#/components/schemas/PagableGeometryResponse",
  "type": "object",
  "properties": {
    "content": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GeometryResponse"
      }
    },
    "totalPages": {
      "type": "integer",
      "format": "int32"
    },
    "totalElements": {
      "type": "integer",
      "format": "int64"
    },
    "sort": {
      "$ref": "#/$defs/Sort"
    },
    "first": {
      "type": "boolean"
    },
    "last": {
      "type": "boolean"
    },
    "numberOfElements": {
      "type": "integer",
      "format": "int32"
    },
    "pageable": {
      "$ref": "#/$defs/PageableObject"
    },
    "size": {
      "type": "integer",
      "format": "int32"
    },
    "number": {
      "type": "integer",
      "format": "int32"
    },
    "empty": {
      "type": "boolean"
    }
  },
  "$defs": {
    "CoverageFeature": {
      "required": [
        "geometry",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of geometry. The only allowed value is `Feature`.\n",
          "enum": [
            "Feature"
          ]
        },
        "geometry": {
          "$ref": "#/$defs/CoverageGeometry"
        },
        "properties": {
          "type": "object",
          "description": "Properties of the geometry.\n"
        }
      },
      "description": "A spatially bounded GeoJSON feature.\n"
    },
    "CoverageGeometry": {
      "required": [
        "coordinates",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of geometry. Only AOIs are supported.",
          "enum": [
            "Polygon"
          ]
        },
        "coordinates": {
          "type": "array",
          "description": "The coordinates.",
          "items": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          }
        }
      },
      "description": "The geometry in the GeoJSON format.\n"
    },
    "FeatureCollection": {
      "required": [
        "features",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of geometry. The only allowed value is `FeatureCollection`.\n",
          "enum": [
            "FeatureCollection"
          ]
        },
        "features": {
          "type": "array",
          "description": "GeoJSON features.\n",
          "items": {
            "$ref": "#/$defs/CoverageFeature"
          }
        }
      },
      "description": "A GeoJSON feature collection.\n"
    },
    "GeometryResponse": {
      "required": [
        "accountId",
        "createdAt",
        "displayName",
        "featureCollection",
        "id",
        "updatedAt",
        "workspaceId"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The geometry ID.",
          "format": "uuid"
        },
        "displayName": {
          "maxLength": 200,
          "minLength": 1,
          "type": "string",
          "description": "The name of the geometry."
        },
        "featureCollection": {
          "$ref": "#/$defs/FeatureCollection"
        },
        "accountId": {
          "type": "string",
          "description": "The account ID.",
          "format": "uuid"
        },
        "workspaceId": {
          "type": "string",
          "description": "The workspace ID.",
          "format": "uuid"
        },
        "createdAt": {
          "type": "string",
          "description": "The timestamp when the geometry was created.\n",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "description": "The timestamp when the geometry was last updated.\n",
          "format": "date-time"
        }
      }
    },
    "PageableObject": {
      "type": "object",
      "properties": {
        "pageNumber": {
          "type": "integer",
          "format": "int32"
        },
        "pageSize": {
          "type": "integer",
          "format": "int32"
        },
        "sort": {
          "$ref": "#/$defs/Sort"
        },
        "offset": {
          "type": "integer",
          "format": "int64"
        },
        "paged": {
          "type": "boolean"
        },
        "unpaged": {
          "type": "boolean"
        }
      }
    },
    "Sort": {
      "type": "object",
      "properties": {
        "empty": {
          "type": "boolean"
        },
        "sorted": {
          "type": "boolean"
        },
        "unsorted": {
          "type": "boolean"
        }
      }
    }
  }
}