wisp-schema 0.1.0 → 0.2.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wisp-schema.rb +1 -1
  3. data/wisp.json +47 -12
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5234655066185960baf7e6dd335407a08a0972258c9cea6dc41e6373b41290a2
4
- data.tar.gz: 66e415f68ff4b5ccd7a640a55ea6997bae70c74fdcd15267da092a7ee50d70c2
3
+ metadata.gz: ec50745c5025c8799b623f71b7c1babe063006bd04f90b1772542597379560bf
4
+ data.tar.gz: 5253f43b255dbacdeb61b6d67f35b8096c3677b9cf45b07825eac28f1749fffb
5
5
  SHA512:
6
- metadata.gz: 56ceee9cf9a97d0a9009b7683dffaa8b3ac5039c7a120ca68d7399f19753440a60c4bd4fcee324239012d77e179b08e6a35779ebed50c8d766bb833a5bf1a759
7
- data.tar.gz: 29764efd8c35f3418dfa5484f2341c288ba06735d3a51f813455a020ac39dc15c6f6e98a83d6122c55c96a3bc7e682780aa1bba7efcd058e38c1722adc121311
6
+ metadata.gz: e8fc34f0259f2540233bd9556348f8676978ca99102b89c22e0ffc8c1b549f5d3eb793b288f73150307468817736acdf925dce504007ce92e84896ecbf0cb67f
7
+ data.tar.gz: 8300419483f955b74e85523976adde473c67a9de76f7dfd8df60d761b1a39b22a8ec08735e4fa7d91fd603e85dd0b33348becd9e338070e70edba53dfa2189d7
data/lib/wisp-schema.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
 
6
6
  SCHEMA_PATH = File.expand_path('../wisp.json', __dir__)
7
7
  end
data/wisp.json CHANGED
@@ -196,7 +196,10 @@
196
196
  "action": {
197
197
  "enum": ["CLICK"]
198
198
  },
199
- "target": {"$ref": "#/definitions/noun"}
199
+ "target": {
200
+ "title": "Target",
201
+ "$ref": "#/definitions/noun"
202
+ }
200
203
  },
201
204
  "required": ["action", "target"]
202
205
  },
@@ -209,7 +212,10 @@
209
212
  "enum": ["FILL"]
210
213
  },
211
214
  "text": {"title": "Text", "type": "string"},
212
- "target": {"$ref": "#/definitions/noun"}
215
+ "target": {
216
+ "title": "Target",
217
+ "$ref": "#/definitions/noun"
218
+ }
213
219
  },
214
220
  "required": ["action", "target", "text"]
215
221
  },
@@ -246,7 +252,10 @@
246
252
  "action": {
247
253
  "enum": ["HOVER"]
248
254
  },
249
- "target": {"$ref": "#/definitions/noun"}
255
+ "target": {
256
+ "title": "Target",
257
+ "$ref": "#/definitions/noun"
258
+ }
250
259
  },
251
260
  "required": ["action", "target"]
252
261
  },
@@ -258,7 +267,10 @@
258
267
  "action": {
259
268
  "enum": ["DROPDOWN_SELECT"]
260
269
  },
261
- "target": {"$ref": "#/definitions/noun"},
270
+ "target": {
271
+ "title": "Target",
272
+ "$ref": "#/definitions/noun"
273
+ },
262
274
  "option": {"title": "Option", "type": "string"}
263
275
  },
264
276
  "required": ["action", "target"]
@@ -271,7 +283,10 @@
271
283
  "action": {
272
284
  "enum": ["CHECKBOX_CHECK"]
273
285
  },
274
- "target": {"$ref": "#/definitions/noun"}
286
+ "target": {
287
+ "title": "Target",
288
+ "$ref": "#/definitions/noun"
289
+ }
275
290
  },
276
291
  "required": ["action", "target"]
277
292
  },
@@ -283,7 +298,10 @@
283
298
  "action": {
284
299
  "enum": ["CHECKBOX_UNCHECK"]
285
300
  },
286
- "target": {"$ref": "#/definitions/noun"}
301
+ "target": {
302
+ "title": "Target",
303
+ "$ref": "#/definitions/noun"
304
+ }
287
305
  },
288
306
  "required": ["action", "target"]
289
307
  },
@@ -353,7 +371,10 @@
353
371
  "action": {
354
372
  "enum": ["SCROLL"]
355
373
  },
356
- "target": {"$ref": "#/definitions/noun"},
374
+ "target": {
375
+ "title": "Target",
376
+ "$ref": "#/definitions/noun"
377
+ },
357
378
  "direction": {"title": "Direction", "type": "string"}
358
379
  },
359
380
  "required": ["action", "direction"]
@@ -366,7 +387,10 @@
366
387
  "action": {
367
388
  "enum": ["DRAG_AND_DROP"]
368
389
  },
369
- "target": {"$ref": "#/definitions/noun"},
390
+ "target": {
391
+ "title": "Target",
392
+ "$ref": "#/definitions/noun"
393
+ },
370
394
  "object": {"title": "Object", "type": "string"}
371
395
  },
372
396
  "required": ["action", "target", "object"]
@@ -379,7 +403,10 @@
379
403
  "action": {
380
404
  "enum": ["CLICK_AND_HOLD"]
381
405
  },
382
- "target": {"$ref": "#/definitions/noun"},
406
+ "target": {
407
+ "title": "Target",
408
+ "$ref": "#/definitions/noun"
409
+ },
383
410
  "seconds": {"title": "Seconds", "type": "integer"}
384
411
  },
385
412
  "required": ["action", "target", "seconds"]
@@ -404,7 +431,10 @@
404
431
  "assertion": {
405
432
  "enum": ["SEE"]
406
433
  },
407
- "object": {"$ref": "#/definitions/noun"}
434
+ "object": {
435
+ "title": "Object",
436
+ "$ref": "#/definitions/noun"
437
+ }
408
438
  },
409
439
  "required": ["assertion", "object"]
410
440
  },
@@ -416,7 +446,10 @@
416
446
  "assertion": {
417
447
  "enum": ["DISAPPEAR"]
418
448
  },
419
- "object": {"$ref": "#/definitions/noun"}
449
+ "object": {
450
+ "title": "Object",
451
+ "$ref": "#/definitions/noun"
452
+ }
420
453
  },
421
454
  "required": ["assertion", "object"]
422
455
  },
@@ -449,10 +482,12 @@
449
482
  "title": "Wisp Test",
450
483
  "properties": {
451
484
  "version": {
452
- "type": "integer"
485
+ "type": "string",
486
+ "title": "Version"
453
487
  },
454
488
  "verbs": {
455
489
  "type": "array",
490
+ "title": "Verbs",
456
491
  "items": {
457
492
  "$ref": "#/definitions/verb"
458
493
  }
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski