{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openeo/json-schema/openeo-file-schema.json",
  "title": "Workspace File",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openeo-file-storage-api-openapi.yml#/components/schemas/file",
  "type": "object",
  "required": [
    "path"
  ],
  "properties": {
    "path": {
      "type": "string",
      "description": "Path of the file, relative to the root directory of the user's server-side workspace.\nMUST NOT start with a slash `/` and MUST NOT be url-encoded.\n\nThe Windows-style path name component separator `\\` is not supported,\nalways use `/` instead.\n\nNote: The pattern only specifies a minimal subset of invalid characters.\nThe back-ends MAY enforce additional restrictions depending on their OS/environment.",
      "pattern": "^[^/\\r\\n\\t\\\\:'\"][^\\r\\n\\t\\\\:'\"]*$"
    },
    "size": {
      "type": "integer",
      "description": "File size in bytes."
    },
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time the file has lastly been modified, formatted as a [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html) date-time."
    }
  }
}