Common definitions 0.2
Schema reference / Common definitions / 0.2
Shared IDs, versions, paths, poses, revisions, capabilities, areas and mounts referenced by the world and IPC schemas.
Raw schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://hyprune.com/schema/v0.2/common.schema.json", "title": "Hyprune 0.2 common", "$defs": { "id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)+$" }, "slug": { "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[a-z][a-z0-9-]*$" }, "version": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$" }, "path": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+(?:/[A-Za-z0-9_.-]+)*$" }, "pose": { "type": "object", "properties": { "position": { "type": "array", "items": { "type": "number" }, "minItems": 3, "maxItems": 3 }, "rotation": { "type": "array", "items": { "type": "number" }, "minItems": 4, "maxItems": 4 } }, "required": [ "position", "rotation" ], "additionalProperties": false }, "index": { "type": "integer", "minimum": 0 }, "capability": { "enum": [ "state.read", "world.control", "surface.control", "movement.control", "shell.control", "runtime.control", "data.publish" ] }, "extensions": { "type": "object", "propertyNames": { "$ref": "common.schema.json#/$defs/id" }, "additionalProperties": { "type": "object" } }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }}Changes since 0.1
Structural diff against 0.1: 1 definition changed. Descriptions and $id changes are ignored.
1 change
- changed
capability- ~
(definition):"state.read" | "world.control" | "surface.control" | "movement.control" | "shell.control" | "runtime.control" → :"state.read" | "world.control" | "surface.control" | "movement.control" | "shell.control" | "runtime.control" | "data.publish"
- ~
Definitions
id#
string · length 1–128 · pattern ^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$
slug#
string · length 1–64 · pattern ^[a-z][a-z0-9-]*$
version#
string · length 1–256 · pattern ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$
path#
string · length 1–512 · pattern ^(?!.*(?:^|/)\.{1,2}(?:/|$))[A-Za-z0-9_.-]+(?:/[A-Za-z0-9_.-]+)*$
index#
integer · ≥ 0
capability#
"state.read" | "world.control" | "surface.control" | "movement.control" | "shell.control" | "runtime.control" | "data.publish"
revision#
integer · ≥ 0 · ≤ 2⁵³−1
Mirrored byte-for-byte from hyprune/schema at 34849da45183 (2026-10-15). SHA-256 f8b00d1be570b6b285e2ba6db631347efa7499b951c59ba0ca9b5fc9fbb2b64d.