{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe/main/json-schema/adobe-rest-base-space-schema.json",
  "title": "rest_base.Space",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-spaces-api-openapi.yml#/components/schemas/rest_base.Space",
  "type": "object",
  "properties": {
    "$schema": {
      "description": "A URL to the JSON schema for this object.",
      "type": "string",
      "format": "uri",
      "readOnly": true
    },
    "expiry": {
      "description": "time at which the space will be deleted",
      "type": "string",
      "format": "date-time"
    },
    "files": {
      "description": "List of all files contained in Space, ordered by name.",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/rest_base.SpaceFile"
      }
    },
    "id": {
      "description": "Unique identifier of this Space.",
      "type": "string"
    },
    "url": {
      "description": "URL to the full description of this Space.",
      "type": "string"
    },
    "archiveUrl": {
      "description": "URL to fetch the whole space as an archive (usually a ZIP file)."
    }
  },
  "additionalProperties": false,
  "required": [
    "url",
    "id",
    "expiry",
    "files"
  ],
  "$defs": {
    "rest_base.SpaceFile": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "size": {
          "type": "integer",
          "format": "int64",
          "minimum": 0
        },
        "url": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "url",
        "name",
        "size"
      ]
    }
  }
}