Skip to content

Commit 1db54d0

Browse files
authored
Create ResonanceZoneState.schema.json
Signed-off-by: Nawder Loswin <umaywant2@duck.com>
1 parent d600edb commit 1db54d0

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://triadicframeworks.org/schemas/rtt/core/v1/ResonanceZoneState.schema.json",
4+
"title": "ResonanceZoneState",
5+
"type": "object",
6+
"required": [
7+
"zone_id",
8+
"mesh_id",
9+
"timestamp",
10+
"clarity_score",
11+
"stress_hint",
12+
"composite_risk",
13+
"drift_vector"
14+
],
15+
"properties": {
16+
"zone_id": { "type": "string" },
17+
"mesh_id": { "type": "string", "format": "uuid" },
18+
"timestamp": { "type": "string", "format": "date-time" },
19+
"clarity_score": { "type": "integer", "minimum": 0, "maximum": 255 },
20+
"stress_hint": { "type": "integer", "minimum": 0, "maximum": 255 },
21+
"gas_risk": {
22+
"type": "string",
23+
"enum": ["low", "medium", "high", "critical"]
24+
},
25+
"vibration_risk": {
26+
"type": "string",
27+
"enum": ["low", "medium", "high", "critical"]
28+
},
29+
"composite_risk": {
30+
"type": "string",
31+
"enum": ["normal", "watch", "degrading", "evacuate", "no-entry"]
32+
},
33+
"drift_vector": {
34+
"$ref": "ResonanceFieldSample.schema.json#/properties/drift_vector"
35+
},
36+
"source_samples": {
37+
"type": "array",
38+
"items": { "type": "string", "format": "uuid" }
39+
},
40+
"extensions": {
41+
"type": "object",
42+
"additionalProperties": true
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)