{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/portamora-app/json-schema/portamora-app-world-version-schema.json",
  "title": "WorldVersion",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/portamora-app-openapi.yml#/components/schemas/WorldVersion",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 18,
      "maxLength": 18,
      "pattern": "^version_[6789BCDFGHJKLMNPQRTWbcdfghjkmnpqrtwz]{10}$",
      "description": "Case-sensitive version identifier with 10 safe-alphabet characters after the prefix."
    },
    "worldId": {
      "type": "string",
      "minLength": 16,
      "maxLength": 16,
      "pattern": "^world_[6789BCDFGHJKLMNPQRTWbcdfghjkmnpqrtwz]{10}$",
      "description": "Case-sensitive world identifier with 10 safe-alphabet characters after the prefix."
    },
    "versionNumber": {
      "type": "integer",
      "exclusiveMinimum": 0
    },
    "sdkVersion": {
      "type": "number",
      "enum": [
        1
      ]
    },
    "bytesUnpacked": {
      "type": "integer",
      "minimum": 0
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "packagePath": {
      "type": "string"
    },
    "controls": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string",
        "minLength": 1,
        "maxLength": 160
      },
      "default": null
    },
    "links": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri"
        },
        "world": {
          "type": "string",
          "format": "uri"
        },
        "play": {
          "type": "string",
          "format": "uri"
        },
        "entry": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "self",
        "world",
        "play",
        "entry"
      ]
    }
  },
  "required": [
    "id",
    "worldId",
    "versionNumber",
    "sdkVersion",
    "bytesUnpacked",
    "notes",
    "createdAt",
    "packagePath",
    "links"
  ]
}