wisp-schema 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wisp-schema.rb +1 -1
  3. data/nouns.json +0 -176
  4. data/wisp.json +3 -155
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 977b8fbf0af2cbd4cdce4de8c42c0471084c9641716b624af5b5ce986c1ed4ac
4
- data.tar.gz: a6b561710fad1baf38ba235a359ba30623cd8851e5a9d21ddb3fd1f654cb1473
3
+ metadata.gz: '0969953deb28f10886f8cffa74216aa4c86d3a39ec95888205b9a12b31aa61a9'
4
+ data.tar.gz: 13b9e77adf29c6ea2fd654018f11831680caa685f3f32c4841e1f0cd49dcdd05
5
5
  SHA512:
6
- metadata.gz: 4c08c38b4f8d9f79a08b2e967f536f44c554772d40c08c65e072cd6982375297625c195bba54008093113ac49dd30d5e8aee6f08ff07758da6ceb5cd73bd955e
7
- data.tar.gz: 0e31cc4970c190fecf282016c14bddc4942b86dad62d84544afc88d1338be31169f4203de83a6fd77ffb63dfeca54e5dd50d408f7e4336d39fed1056f8fe1a5d
6
+ metadata.gz: 206c4d06c894c587be75ec5c1237735ff4214b2e6fb12c4be296d15311779896a92917aa89daf80eabd5935ddd0ddf0b668175aa4daf037289cb91a79080bdb2
7
+ data.tar.gz: ac4a825e57de6b57be585dc414bd5325869a75cc97114ecaa32c18cabc63d7ce2c672491aa11031d5bde4536fb9f2d1c4307830f46f619c27ea24d4c7c321881
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = '0.15.0'
4
+ VERSION = '0.16.0'
5
5
 
6
6
  SCHEMA_PATH = File.expand_path('../wisp.json', __dir__)
7
7
  NOUNS_PATH = File.expand_path('../nouns.json', __dir__)
data/nouns.json CHANGED
@@ -1,171 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "definitions": {
4
- "button": {
5
- "type": "object",
6
- "title": "Button",
7
- "description": "Button",
8
- "properties": {
9
- "type": {
10
- "enum": ["button"]
11
- },
12
- "label": {"title": "Label", "type": "string"},
13
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
14
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
15
- },
16
- "additionalProperties": false,
17
- "required": ["type", "label"]
18
- },
19
- "text_field": {
20
- "type": "object",
21
- "title": "Text Field",
22
- "description": "Text Field",
23
- "properties": {
24
- "type": {
25
- "enum": ["text_field"]
26
- },
27
- "label": {"title": "Label", "type": "string"},
28
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
29
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
30
- },
31
- "additionalProperties": false,
32
- "required": ["type", "label"]
33
- },
34
- "dropdown": {
35
- "type": "object",
36
- "title": "Dropdown",
37
- "description": "Dropdown",
38
- "properties": {
39
- "type": {
40
- "enum": ["dropdown"]
41
- },
42
- "label": {"title": "Label", "type": "string"},
43
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
44
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
45
- },
46
- "additionalProperties": false,
47
- "required": ["type", "label"]
48
- },
49
- "dropdown_option": {
50
- "type": "object",
51
- "title": "Dropdown Option",
52
- "description": "Option in open dropdown",
53
- "properties": {
54
- "type": {
55
- "enum": ["dropdown_option"]
56
- },
57
- "label": {"title": "Label", "type": "string"},
58
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
59
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
60
- },
61
- "additionalProperties": false,
62
- "required": ["type", "label"]
63
- },
64
- "link": {
65
- "type": "object",
66
- "title": "Link",
67
- "description": "Link",
68
- "properties": {
69
- "type": {
70
- "enum": ["link"]
71
- },
72
- "text": {"title": "Text", "type": "string"},
73
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
74
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
75
- },
76
- "additionalProperties": false,
77
- "required": ["type", "text"]
78
- },
79
- "icon": {
80
- "type": "object",
81
- "title": "Icon",
82
- "description": "Icon",
83
- "properties": {
84
- "type": {
85
- "enum": ["icon"]
86
- },
87
- "description": {"title": "Description", "type": "string"},
88
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
89
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
90
- },
91
- "additionalProperties": false,
92
- "required": ["type", "description"]
93
- },
94
- "checkbox": {
95
- "type": "object",
96
- "title": "Checkbox",
97
- "description": "Checkbox",
98
- "properties": {
99
- "type": {
100
- "enum": ["checkbox"]
101
- },
102
- "label": {"title": "Label", "type": "string"},
103
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
104
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
105
- },
106
- "additionalProperties": false,
107
- "required": ["type", "label"]
108
- },
109
- "header": {
110
- "type": "object",
111
- "title": "Header",
112
- "description": "Page Header",
113
- "properties": {
114
- "type": {
115
- "enum": ["header"]
116
- },
117
- "text": {"title": "Text", "type": "string"},
118
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
119
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
120
- },
121
- "additionalProperties": false,
122
- "required": ["type", "text"]
123
- },
124
- "window": {
125
- "type": "object",
126
- "title": "Window",
127
- "description": "Any pop-up window",
128
- "properties": {
129
- "type": {
130
- "enum": ["window"]
131
- },
132
- "description": {"title": "Description", "type": "string"},
133
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
134
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
135
- },
136
- "additionalProperties": false,
137
- "required": ["type", "description"]
138
- },
139
- "modal": {
140
- "type": "object",
141
- "title": "Modal",
142
- "description": "In page modal",
143
- "properties": {
144
- "type": {
145
- "enum": ["modal"]
146
- },
147
- "description": {"title": "Description", "type": "string"},
148
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
149
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
150
- },
151
- "additionalProperties": false,
152
- "required": ["type", "description"]
153
- },
154
- "text": {
155
- "type": "object",
156
- "title": "Text",
157
- "description": "Exactly matched text",
158
- "properties": {
159
- "type": {
160
- "enum": ["text"]
161
- },
162
- "text": {"title": "Text", "type": "string"},
163
- "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
164
- "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
165
- },
166
- "additionalProperties": false,
167
- "required": ["type", "text"]
168
- },
169
4
  "ui_element": {
170
5
  "type": "object",
171
6
  "title": "UI Element",
@@ -204,17 +39,6 @@
204
39
  },
205
40
  "noun": {
206
41
  "oneOf": [
207
- {"$ref": "#/definitions/button"},
208
- {"$ref": "#/definitions/text_field"},
209
- {"$ref": "#/definitions/dropdown"},
210
- {"$ref": "#/definitions/dropdown_option"},
211
- {"$ref": "#/definitions/link"},
212
- {"$ref": "#/definitions/icon"},
213
- {"$ref": "#/definitions/checkbox"},
214
- {"$ref": "#/definitions/header"},
215
- {"$ref": "#/definitions/window"},
216
- {"$ref": "#/definitions/modal"},
217
- {"$ref": "#/definitions/text"},
218
42
  {"$ref": "#/definitions/ui_element"},
219
43
  {"$ref": "#/definitions/ui_element_reference"}
220
44
  ]
data/wisp.json CHANGED
@@ -4,164 +4,10 @@
4
4
  "noun": {
5
5
  "title": "Wisp Noun",
6
6
  "oneOf": [
7
- {"$ref": "#/definitions/button"},
8
- {"$ref": "#/definitions/text_field"},
9
- {"$ref": "#/definitions/dropdown"},
10
- {"$ref": "#/definitions/dropdown_option"},
11
- {"$ref": "#/definitions/link"},
12
- {"$ref": "#/definitions/icon"},
13
- {"$ref": "#/definitions/checkbox"},
14
- {"$ref": "#/definitions/header"},
15
- {"$ref": "#/definitions/window"},
16
- {"$ref": "#/definitions/modal"},
17
- {"$ref": "#/definitions/text"},
18
7
  {"$ref": "#/definitions/ui_element"},
19
8
  {"$ref": "#/definitions/ui_element_reference"}
20
9
  ]
21
10
  },
22
- "button": {
23
- "type": "object",
24
- "title": "Button",
25
- "description": "Button",
26
- "properties": {
27
- "type": {
28
- "enum": ["button"]
29
- },
30
- "label": {"title": "Label", "type": "string"}
31
- },
32
- "additionalProperties": false,
33
- "required": ["type", "label"]
34
- },
35
- "text_field": {
36
- "type": "object",
37
- "title": "Text Field",
38
- "description": "Text Field",
39
- "properties": {
40
- "type": {
41
- "enum": ["text_field"]
42
- },
43
- "label": {"title": "Label", "type": "string"}
44
- },
45
- "additionalProperties": false,
46
- "required": ["type", "label"]
47
- },
48
- "dropdown": {
49
- "type": "object",
50
- "title": "Dropdown",
51
- "description": "Dropdown",
52
- "properties": {
53
- "type": {
54
- "enum": ["dropdown"]
55
- },
56
- "label": {"title": "Label", "type": "string"}
57
- },
58
- "additionalProperties": false,
59
- "required": ["type", "label"]
60
- },
61
- "dropdown_option": {
62
- "type": "object",
63
- "title": "Dropdown Option",
64
- "description": "Option in open dropdown",
65
- "properties": {
66
- "type": {
67
- "enum": ["dropdown_option"]
68
- },
69
- "label": {"title": "Label", "type": "string"}
70
- },
71
- "additionalProperties": false,
72
- "required": ["type", "label"]
73
- },
74
- "link": {
75
- "type": "object",
76
- "title": "Link",
77
- "description": "Link",
78
- "properties": {
79
- "type": {
80
- "enum": ["link"]
81
- },
82
- "text": {"title": "Text", "type": "string"}
83
- },
84
- "additionalProperties": false,
85
- "required": ["type", "text"]
86
- },
87
- "icon": {
88
- "type": "object",
89
- "title": "Icon",
90
- "description": "Icon",
91
- "properties": {
92
- "type": {
93
- "enum": ["icon"]
94
- },
95
- "description": {"title": "Description", "type": "string"}
96
- },
97
- "additionalProperties": false,
98
- "required": ["type", "description"]
99
- },
100
- "checkbox": {
101
- "type": "object",
102
- "title": "Checkbox",
103
- "description": "Checkbox",
104
- "properties": {
105
- "type": {
106
- "enum": ["checkbox"]
107
- },
108
- "label": {"title": "Label", "type": "string"}
109
- },
110
- "additionalProperties": false,
111
- "required": ["type", "label"]
112
- },
113
- "header": {
114
- "type": "object",
115
- "title": "Header",
116
- "description": "Page Header",
117
- "properties": {
118
- "type": {
119
- "enum": ["header"]
120
- },
121
- "text": {"title": "Text", "type": "string"}
122
- },
123
- "additionalProperties": false,
124
- "required": ["type", "text"]
125
- },
126
- "window": {
127
- "type": "object",
128
- "title": "Window",
129
- "description": "Any pop-up window",
130
- "properties": {
131
- "type": {
132
- "enum": ["window"]
133
- },
134
- "description": {"title": "Description", "type": "string"}
135
- },
136
- "additionalProperties": false,
137
- "required": ["type", "description"]
138
- },
139
- "modal": {
140
- "type": "object",
141
- "title": "Modal",
142
- "description": "In page modal",
143
- "properties": {
144
- "type": {
145
- "enum": ["modal"]
146
- },
147
- "description": {"title": "Description", "type": "string"}
148
- },
149
- "additionalProperties": false,
150
- "required": ["type", "description"]
151
- },
152
- "text": {
153
- "type": "object",
154
- "title": "Text",
155
- "description": "Exactly matched text",
156
- "properties": {
157
- "type": {
158
- "enum": ["text"]
159
- },
160
- "text": {"title": "Text", "type": "string"}
161
- },
162
- "additionalProperties": false,
163
- "required": ["type", "text"]
164
- },
165
11
  "ui_element": {
166
12
  "type": "object",
167
13
  "title": "UI Element",
@@ -170,7 +16,9 @@
170
16
  "type": {
171
17
  "enum": ["ui_element"]
172
18
  },
173
- "element": {"title": "Element", "type": "string"}
19
+ "element": {"title": "Element", "type": "string"},
20
+ "focus_x": {"title": "Focus offset for x-axis from top left corner", "type": "integer", "options": {"hidden": true}},
21
+ "focus_y": {"title": "Focus offset for y-axis from top left corner", "type": "integer", "options": {"hidden": true}}
174
22
  },
175
23
  "additionalProperties": false,
176
24
  "required": ["type", "element"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wisp-schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski