openuispec 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/examples/social-app/AGENTS.md +1 -1
- package/examples/social-app/CLAUDE.md +1 -1
- package/examples/social-app/generated/web/social-app/src/components/Shell.tsx +24 -24
- package/examples/social-app/generated/web/social-app/src/components/ui.tsx +1 -1
- package/examples/social-app/generated/web/social-app/src/styles.css +1 -0
- package/examples/social-app/openuispec/contracts/action_trigger.yaml +21 -0
- package/examples/social-app/openuispec/contracts/nav_container.yaml +21 -0
- package/examples/todo-orbit/openuispec/contracts/action_trigger.yaml +10 -0
- package/examples/todo-orbit/openuispec/contracts/nav_container.yaml +25 -5
- package/mcp-server/screenshot.ts +11 -5
- package/package.json +4 -2
- package/schema/contract.schema.json +57 -7
- package/schema/custom-contract.schema.json +59 -8
- package/schema/defs/action.schema.json +1 -1
- package/schema/defs/adaptive.schema.json +1 -1
- package/schema/defs/common.schema.json +8 -8
- package/schema/defs/data-binding.schema.json +3 -3
- package/schema/defs/validation.schema.json +1 -1
- package/schema/flow.schema.json +14 -14
- package/schema/locale.schema.json +1 -1
- package/schema/openuispec.schema.json +5 -5
- package/schema/platform.schema.json +2 -2
- package/schema/screen.schema.json +23 -23
- package/schema/tokens/color.schema.json +9 -9
- package/schema/tokens/elevation.schema.json +2 -2
- package/schema/tokens/icons.schema.json +1 -1
- package/schema/tokens/layout.schema.json +9 -9
- package/schema/tokens/motion.schema.json +2 -2
- package/schema/tokens/spacing.schema.json +4 -4
- package/schema/tokens/themes.schema.json +2 -2
- package/schema/tokens/typography.schema.json +4 -4
- package/schema/validate.ts +1 -1
- package/spec/openuispec-v0.1.md +83 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json",
|
|
4
4
|
"title": "OpenUISpec Data Binding Definitions",
|
|
5
5
|
"description": "Data sources, state definitions, data paths, and format expressions",
|
|
6
6
|
"$defs": {
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
"type": "object",
|
|
76
76
|
"description": "Map of named data sources",
|
|
77
77
|
"additionalProperties": {
|
|
78
|
-
"$ref": "https://openuispec.
|
|
78
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json#/$defs/data_source"
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"state_map": {
|
|
82
82
|
"type": "object",
|
|
83
83
|
"description": "Map of named state definitions",
|
|
84
84
|
"additionalProperties": {
|
|
85
|
-
"$ref": "https://openuispec.
|
|
85
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json#/$defs/state_def"
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"params_map": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/defs/validation.schema.json",
|
|
4
4
|
"title": "OpenUISpec Validation",
|
|
5
5
|
"description": "Validation rule definitions for input_field contracts (Section 13)",
|
|
6
6
|
|
package/schema/flow.schema.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/flow.schema.json",
|
|
4
4
|
"title": "OpenUISpec Flow",
|
|
5
5
|
"description": "Navigation flow \u2014 a single root key (flow name) mapping to the flow definition",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"minProperties": 1,
|
|
8
8
|
"maxProperties": 1,
|
|
9
9
|
"additionalProperties": {
|
|
10
|
-
"$ref": "https://openuispec.
|
|
10
|
+
"$ref": "https://openuispec.rsteam.uz/schema/flow.schema.json#/$defs/flow_def"
|
|
11
11
|
},
|
|
12
12
|
"$defs": {
|
|
13
13
|
"flow_def": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"params": {
|
|
29
|
-
"$ref": "https://openuispec.
|
|
29
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json#/$defs/params_map"
|
|
30
30
|
},
|
|
31
31
|
"entry": {
|
|
32
32
|
"type": "string",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"type": "object",
|
|
37
37
|
"description": "Map of step names to screen definitions",
|
|
38
38
|
"additionalProperties": {
|
|
39
|
-
"$ref": "https://openuispec.
|
|
39
|
+
"$ref": "https://openuispec.rsteam.uz/schema/flow.schema.json#/$defs/flow_screen"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"platform_hints": {
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"description": "Per-platform presentation hints",
|
|
45
45
|
"properties": {
|
|
46
46
|
"ios": {
|
|
47
|
-
"$ref": "https://openuispec.
|
|
47
|
+
"$ref": "https://openuispec.rsteam.uz/schema/flow.schema.json#/$defs/platform_hint"
|
|
48
48
|
},
|
|
49
49
|
"android": {
|
|
50
|
-
"$ref": "https://openuispec.
|
|
50
|
+
"$ref": "https://openuispec.rsteam.uz/schema/flow.schema.json#/$defs/platform_hint"
|
|
51
51
|
},
|
|
52
52
|
"web": {
|
|
53
|
-
"$ref": "https://openuispec.
|
|
53
|
+
"$ref": "https://openuispec.rsteam.uz/schema/flow.schema.json#/$defs/platform_hint"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"additionalProperties": false
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
"description": "Reference to an external screen file"
|
|
73
73
|
},
|
|
74
74
|
"screen_inline": {
|
|
75
|
-
"$ref": "https://openuispec.
|
|
75
|
+
"$ref": "https://openuispec.rsteam.uz/schema/flow.schema.json#/$defs/inline_screen_def"
|
|
76
76
|
},
|
|
77
77
|
"transitions": {
|
|
78
78
|
"type": "object",
|
|
79
79
|
"description": "Map of transition names to transition definitions",
|
|
80
80
|
"additionalProperties": {
|
|
81
|
-
"$ref": "https://openuispec.
|
|
81
|
+
"$ref": "https://openuispec.rsteam.uz/schema/flow.schema.json#/$defs/transition_def"
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
},
|
|
@@ -95,21 +95,21 @@
|
|
|
95
95
|
"type": "string"
|
|
96
96
|
},
|
|
97
97
|
"params": {
|
|
98
|
-
"$ref": "https://openuispec.
|
|
98
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json#/$defs/params_map"
|
|
99
99
|
},
|
|
100
100
|
"data": {
|
|
101
|
-
"$ref": "https://openuispec.
|
|
101
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json#/$defs/data_map"
|
|
102
102
|
},
|
|
103
103
|
"state": {
|
|
104
|
-
"$ref": "https://openuispec.
|
|
104
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json#/$defs/state_map"
|
|
105
105
|
},
|
|
106
106
|
"layout": {
|
|
107
|
-
"$ref": "https://openuispec.
|
|
107
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/layout_def"
|
|
108
108
|
},
|
|
109
109
|
"surfaces": {
|
|
110
110
|
"type": "object",
|
|
111
111
|
"additionalProperties": {
|
|
112
|
-
"$ref": "https://openuispec.
|
|
112
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/surface_def"
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/locale.schema.json",
|
|
4
4
|
"title": "OpenUISpec Locale",
|
|
5
5
|
"description": "Locale file with $locale, $direction, and translation key-value pairs (ICU MessageFormat)",
|
|
6
6
|
"type": "object",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/openuispec.schema.json",
|
|
4
4
|
"title": "OpenUISpec Root Manifest",
|
|
5
5
|
"description": "Root manifest file (openuispec.yaml) defining project, includes, generation, data model, and API",
|
|
6
6
|
"type": "object",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"type": "object",
|
|
164
164
|
"description": "Custom formatter definitions for format expressions",
|
|
165
165
|
"additionalProperties": {
|
|
166
|
-
"$ref": "https://openuispec.
|
|
166
|
+
"$ref": "https://openuispec.rsteam.uz/schema/openuispec.schema.json#/$defs/formatter_def"
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
"mappers": {
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"type": "object",
|
|
181
181
|
"description": "Application data model definitions",
|
|
182
182
|
"additionalProperties": {
|
|
183
|
-
"$ref": "https://openuispec.
|
|
183
|
+
"$ref": "https://openuispec.rsteam.uz/schema/openuispec.schema.json#/$defs/model_def"
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
186
|
"custom_contracts": {
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"additionalProperties": {
|
|
207
207
|
"type": "object",
|
|
208
208
|
"additionalProperties": {
|
|
209
|
-
"$ref": "https://openuispec.
|
|
209
|
+
"$ref": "https://openuispec.rsteam.uz/schema/openuispec.schema.json#/$defs/endpoint_def"
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
}
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
"type": "object",
|
|
247
247
|
"description": "Data model \u2014 map of field names to field definitions",
|
|
248
248
|
"additionalProperties": {
|
|
249
|
-
"$ref": "https://openuispec.
|
|
249
|
+
"$ref": "https://openuispec.rsteam.uz/schema/openuispec.schema.json#/$defs/field_def"
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
252
|
"field_def": {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/platform.schema.json",
|
|
4
4
|
"title": "OpenUISpec Platform Adaptation",
|
|
5
5
|
"description": "Platform-specific overrides, behaviors, and generation config. Root key is the platform name.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"minProperties": 1,
|
|
8
8
|
"maxProperties": 1,
|
|
9
9
|
"additionalProperties": {
|
|
10
|
-
"$ref": "https://openuispec.
|
|
10
|
+
"$ref": "https://openuispec.rsteam.uz/schema/platform.schema.json#/$defs/platform_def"
|
|
11
11
|
},
|
|
12
12
|
"$defs": {
|
|
13
13
|
"platform_def": {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/screen.schema.json",
|
|
4
4
|
"title": "OpenUISpec Screen",
|
|
5
5
|
"description": "Screen composition \u2014 a single root key (screen name) mapping to the screen definition",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"minProperties": 1,
|
|
8
8
|
"maxProperties": 1,
|
|
9
9
|
"additionalProperties": {
|
|
10
|
-
"$ref": "https://openuispec.
|
|
10
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/screen_def"
|
|
11
11
|
},
|
|
12
12
|
"$defs": {
|
|
13
13
|
"screen_def": {
|
|
@@ -30,25 +30,25 @@
|
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
"params": {
|
|
33
|
-
"$ref": "https://openuispec.
|
|
33
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json#/$defs/params_map"
|
|
34
34
|
},
|
|
35
35
|
"data": {
|
|
36
|
-
"$ref": "https://openuispec.
|
|
36
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json#/$defs/data_map"
|
|
37
37
|
},
|
|
38
38
|
"state": {
|
|
39
|
-
"$ref": "https://openuispec.
|
|
39
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/data-binding.schema.json#/$defs/state_map"
|
|
40
40
|
},
|
|
41
41
|
"navigation": {
|
|
42
|
-
"$ref": "https://openuispec.
|
|
42
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/navigation_def"
|
|
43
43
|
},
|
|
44
44
|
"layout": {
|
|
45
|
-
"$ref": "https://openuispec.
|
|
45
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/layout_def"
|
|
46
46
|
},
|
|
47
47
|
"surfaces": {
|
|
48
48
|
"type": "object",
|
|
49
49
|
"description": "Named surface definitions (sheets, modals, panels)",
|
|
50
50
|
"additionalProperties": {
|
|
51
|
-
"$ref": "https://openuispec.
|
|
51
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/surface_def"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"items": {
|
|
75
75
|
"type": "array",
|
|
76
76
|
"items": {
|
|
77
|
-
"$ref": "https://openuispec.
|
|
77
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/nav_item"
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"selected": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"additionalProperties": true
|
|
85
85
|
},
|
|
86
86
|
"adaptive": {
|
|
87
|
-
"$ref": "https://openuispec.
|
|
87
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/adaptive.schema.json"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"required": [
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"type": "string"
|
|
113
113
|
},
|
|
114
114
|
"badge": {
|
|
115
|
-
"$ref": "https://openuispec.
|
|
115
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/common.schema.json#/$defs/badge_config"
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
"required": [
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"type": "string"
|
|
132
132
|
},
|
|
133
133
|
"adaptive": {
|
|
134
|
-
"$ref": "https://openuispec.
|
|
134
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/layout_adaptive"
|
|
135
135
|
},
|
|
136
136
|
"safe_area": {
|
|
137
137
|
"type": "boolean"
|
|
@@ -142,11 +142,11 @@
|
|
|
142
142
|
"sections": {
|
|
143
143
|
"type": "array",
|
|
144
144
|
"items": {
|
|
145
|
-
"$ref": "https://openuispec.
|
|
145
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/section_item"
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
"on_submit": {
|
|
149
|
-
"$ref": "https://openuispec.
|
|
149
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/action.schema.json"
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
"additionalProperties": true
|
|
@@ -205,14 +205,14 @@
|
|
|
205
205
|
"additionalProperties": true
|
|
206
206
|
},
|
|
207
207
|
"action": {
|
|
208
|
-
"$ref": "https://openuispec.
|
|
208
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/action.schema.json"
|
|
209
209
|
},
|
|
210
210
|
"tokens_override": {
|
|
211
211
|
"type": "object",
|
|
212
212
|
"additionalProperties": true
|
|
213
213
|
},
|
|
214
214
|
"adaptive": {
|
|
215
|
-
"$ref": "https://openuispec.
|
|
215
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/adaptive.schema.json"
|
|
216
216
|
},
|
|
217
217
|
"condition": {
|
|
218
218
|
"type": "string"
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"additionalProperties": true
|
|
240
240
|
},
|
|
241
241
|
"validate": {
|
|
242
|
-
"$ref": "https://openuispec.
|
|
242
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/validation.schema.json#/$defs/validation_rules"
|
|
243
243
|
},
|
|
244
244
|
"required_when": {
|
|
245
245
|
"type": "string",
|
|
@@ -250,15 +250,15 @@
|
|
|
250
250
|
"description": "Condition expression — field is enabled (editable) when true"
|
|
251
251
|
},
|
|
252
252
|
"validate_trigger": {
|
|
253
|
-
"$ref": "https://openuispec.
|
|
253
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/validation.schema.json#/$defs/validate_trigger"
|
|
254
254
|
},
|
|
255
255
|
"layout": {
|
|
256
|
-
"$ref": "https://openuispec.
|
|
256
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/inline_layout"
|
|
257
257
|
},
|
|
258
258
|
"children": {
|
|
259
259
|
"type": "array",
|
|
260
260
|
"items": {
|
|
261
|
-
"$ref": "https://openuispec.
|
|
261
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/section_item"
|
|
262
262
|
}
|
|
263
263
|
},
|
|
264
264
|
"padding": {
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"type": "string"
|
|
288
288
|
},
|
|
289
289
|
"adaptive": {
|
|
290
|
-
"$ref": "https://openuispec.
|
|
290
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/layout_adaptive"
|
|
291
291
|
},
|
|
292
292
|
"spacing": {
|
|
293
293
|
"type": "string"
|
|
@@ -335,14 +335,14 @@
|
|
|
335
335
|
"content": {
|
|
336
336
|
"type": "array",
|
|
337
337
|
"items": {
|
|
338
|
-
"$ref": "https://openuispec.
|
|
338
|
+
"$ref": "https://openuispec.rsteam.uz/schema/screen.schema.json#/$defs/section_item"
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
342
|
"additionalProperties": true
|
|
343
343
|
},
|
|
344
344
|
"adaptive": {
|
|
345
|
-
"$ref": "https://openuispec.
|
|
345
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/adaptive.schema.json"
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
348
|
"required": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/tokens/color.schema.json",
|
|
4
4
|
"title": "OpenUISpec Color Tokens",
|
|
5
5
|
"description": "Color token definitions: brand, surface, text, semantic, border, and custom groups",
|
|
6
6
|
"type": "object",
|
|
@@ -16,35 +16,35 @@
|
|
|
16
16
|
"type": "object",
|
|
17
17
|
"description": "Brand identity colors",
|
|
18
18
|
"additionalProperties": {
|
|
19
|
-
"$ref": "https://openuispec.
|
|
19
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/color.schema.json#/$defs/color_entry"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"surface": {
|
|
23
23
|
"type": "object",
|
|
24
24
|
"description": "Background/surface colors",
|
|
25
25
|
"additionalProperties": {
|
|
26
|
-
"$ref": "https://openuispec.
|
|
26
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/color.schema.json#/$defs/color_entry"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"text": {
|
|
30
30
|
"type": "object",
|
|
31
31
|
"description": "Text and foreground colors",
|
|
32
32
|
"additionalProperties": {
|
|
33
|
-
"$ref": "https://openuispec.
|
|
33
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/color.schema.json#/$defs/color_entry"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"semantic": {
|
|
37
37
|
"type": "object",
|
|
38
38
|
"description": "Semantic status colors (success, warning, danger, info)",
|
|
39
39
|
"additionalProperties": {
|
|
40
|
-
"$ref": "https://openuispec.
|
|
40
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/color.schema.json#/$defs/color_entry"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"border": {
|
|
44
44
|
"type": "object",
|
|
45
45
|
"description": "Border colors",
|
|
46
46
|
"additionalProperties": {
|
|
47
|
-
"$ref": "https://openuispec.
|
|
47
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/color.schema.json#/$defs/border_color_entry"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"type": "object",
|
|
53
53
|
"description": "Custom color group",
|
|
54
54
|
"additionalProperties": {
|
|
55
|
-
"$ref": "https://openuispec.
|
|
55
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/color.schema.json#/$defs/color_entry"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"type": "string"
|
|
69
69
|
},
|
|
70
70
|
"range": {
|
|
71
|
-
"$ref": "https://openuispec.
|
|
71
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/common.schema.json#/$defs/hsl_range"
|
|
72
72
|
},
|
|
73
73
|
"on_color": {
|
|
74
|
-
"$ref": "https://openuispec.
|
|
74
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/common.schema.json#/$defs/on_color"
|
|
75
75
|
},
|
|
76
76
|
"contrast_min": {
|
|
77
77
|
"type": "number"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/tokens/elevation.schema.json",
|
|
4
4
|
"title": "OpenUISpec Elevation Tokens",
|
|
5
5
|
"description": "Elevation/shadow definitions with per-platform values",
|
|
6
6
|
"type": "object",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"elevation": {
|
|
13
13
|
"type": "object",
|
|
14
14
|
"additionalProperties": {
|
|
15
|
-
"$ref": "https://openuispec.
|
|
15
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/elevation.schema.json#/$defs/elevation_entry"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/tokens/icons.schema.json",
|
|
4
4
|
"title": "OpenUISpec Icon Tokens",
|
|
5
5
|
"description": "Semantic icon registry with platform mappings, sizes, and variant conventions",
|
|
6
6
|
"type": "object",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/tokens/layout.schema.json",
|
|
4
4
|
"title": "OpenUISpec Layout Tokens",
|
|
5
5
|
"description": "Size classes, platform mapping, layout primitives, and content reflow rules",
|
|
6
6
|
"type": "object",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"description": "Size class definitions",
|
|
18
18
|
"properties": {
|
|
19
19
|
"compact": {
|
|
20
|
-
"$ref": "https://openuispec.
|
|
20
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/layout.schema.json#/$defs/size_class_def"
|
|
21
21
|
},
|
|
22
22
|
"regular": {
|
|
23
|
-
"$ref": "https://openuispec.
|
|
23
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/layout.schema.json#/$defs/size_class_def"
|
|
24
24
|
},
|
|
25
25
|
"expanded": {
|
|
26
|
-
"$ref": "https://openuispec.
|
|
26
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/layout.schema.json#/$defs/size_class_def"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"additionalProperties": false
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"description": "How each platform resolves size classes",
|
|
34
34
|
"properties": {
|
|
35
35
|
"ios": {
|
|
36
|
-
"$ref": "https://openuispec.
|
|
36
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/layout.schema.json#/$defs/platform_size_mapping"
|
|
37
37
|
},
|
|
38
38
|
"android": {
|
|
39
|
-
"$ref": "https://openuispec.
|
|
39
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/layout.schema.json#/$defs/platform_size_mapping"
|
|
40
40
|
},
|
|
41
41
|
"web": {
|
|
42
|
-
"$ref": "https://openuispec.
|
|
42
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/layout.schema.json#/$defs/platform_size_mapping"
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"additionalProperties": false
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"type": "object",
|
|
49
49
|
"description": "Layout primitive definitions",
|
|
50
50
|
"additionalProperties": {
|
|
51
|
-
"$ref": "https://openuispec.
|
|
51
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/layout.schema.json#/$defs/primitive_def"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"reflow_rules": {
|
|
55
55
|
"type": "object",
|
|
56
56
|
"description": "Content reflow rules across size class boundaries",
|
|
57
57
|
"additionalProperties": {
|
|
58
|
-
"$ref": "https://openuispec.
|
|
58
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/adaptive.schema.json"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/tokens/motion.schema.json",
|
|
4
4
|
"title": "OpenUISpec Motion Tokens",
|
|
5
5
|
"description": "Animation durations, easings, reduced motion policy, and motion patterns",
|
|
6
6
|
"type": "object",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"type": "object",
|
|
40
40
|
"description": "Named motion patterns for common interactions",
|
|
41
41
|
"additionalProperties": {
|
|
42
|
-
"$ref": "https://openuispec.
|
|
42
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/motion.schema.json#/$defs/motion_pattern"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/tokens/spacing.schema.json",
|
|
4
4
|
"title": "OpenUISpec Spacing Tokens",
|
|
5
5
|
"description": "Spacing scale, base unit, and aliases",
|
|
6
6
|
"type": "object",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"type": "object",
|
|
25
25
|
"description": "Named spacing scale values",
|
|
26
26
|
"additionalProperties": {
|
|
27
|
-
"$ref": "https://openuispec.
|
|
27
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/spacing.schema.json#/$defs/spacing_value"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"aliases": {
|
|
31
31
|
"type": "object",
|
|
32
32
|
"description": "Named spacing aliases for common patterns",
|
|
33
33
|
"additionalProperties": {
|
|
34
|
-
"$ref": "https://openuispec.
|
|
34
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/spacing.schema.json#/$defs/alias_value"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"type": "integer"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
"$ref": "https://openuispec.
|
|
53
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/common.schema.json#/$defs/range_object"
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
56
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/tokens/themes.schema.json",
|
|
4
4
|
"title": "OpenUISpec Themes",
|
|
5
5
|
"description": "Theme variants with token overrides and platform capabilities",
|
|
6
6
|
"type": "object",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"type": "object",
|
|
21
21
|
"description": "Named theme variants with token overrides",
|
|
22
22
|
"additionalProperties": {
|
|
23
|
-
"$ref": "https://openuispec.
|
|
23
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/themes.schema.json#/$defs/theme_variant"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"platform": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://openuispec.
|
|
3
|
+
"$id": "https://openuispec.rsteam.uz/schema/tokens/typography.schema.json",
|
|
4
4
|
"title": "OpenUISpec Typography Tokens",
|
|
5
5
|
"description": "Font families and type scale definitions",
|
|
6
6
|
"type": "object",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"type": "object",
|
|
17
17
|
"description": "Named font family definitions",
|
|
18
18
|
"additionalProperties": {
|
|
19
|
-
"$ref": "https://openuispec.
|
|
19
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/typography.schema.json#/$defs/font_family_entry"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"scale": {
|
|
23
23
|
"type": "object",
|
|
24
24
|
"description": "Named type scale entries",
|
|
25
25
|
"additionalProperties": {
|
|
26
|
-
"$ref": "https://openuispec.
|
|
26
|
+
"$ref": "https://openuispec.rsteam.uz/schema/tokens/typography.schema.json#/$defs/scale_entry"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"type": "string"
|
|
75
75
|
},
|
|
76
76
|
"size": {
|
|
77
|
-
"$ref": "https://openuispec.
|
|
77
|
+
"$ref": "https://openuispec.rsteam.uz/schema/defs/common.schema.json#/$defs/size_value"
|
|
78
78
|
},
|
|
79
79
|
"weight": {
|
|
80
80
|
"type": "integer"
|
package/schema/validate.ts
CHANGED
|
@@ -398,7 +398,7 @@ function buildAjv(): AjvInstance {
|
|
|
398
398
|
return ajv;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
const BASE = "https://openuispec.
|
|
401
|
+
const BASE = "https://openuispec.rsteam.uz/schema/";
|
|
402
402
|
|
|
403
403
|
// ── validate one file ────────────────────────────────────────────────
|
|
404
404
|
|