@jupytergis/schema 0.1.1 → 0.1.3

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.
@@ -23,7 +23,6 @@
23
23
  }
24
24
  },
25
25
  "minItems": 1,
26
- "default": [],
27
26
  "description": "URLs"
28
27
  },
29
28
  "normalize": {
@@ -450,6 +449,9 @@
450
449
  {
451
450
  "type": "string"
452
451
  },
452
+ {
453
+ "type": "number"
454
+ },
453
455
  {
454
456
  "type": "array",
455
457
  "items": {
@@ -463,15 +465,34 @@
463
465
  {
464
466
  "type": "array",
465
467
  "items": {
466
- "type": "string"
468
+ "anyOf": [
469
+ {
470
+ "type": "number"
471
+ },
472
+ {
473
+ "type": "string"
474
+ },
475
+ {
476
+ "type": "array",
477
+ "items": {
478
+ "anyOf": [
479
+ {
480
+ "type": "number"
481
+ },
482
+ {
483
+ "type": "string"
484
+ }
485
+ ]
486
+ }
487
+ }
488
+ ]
467
489
  }
468
490
  }
469
491
  ]
470
492
  }
471
493
  }
472
494
  ],
473
- "description": "The color of the the object",
474
- "default": "#FF0000"
495
+ "description": "The color of the the object"
475
496
  }
476
497
  }
477
498
  },
@@ -20,5 +20,5 @@ export interface IWebGlLayer {
20
20
  /**
21
21
  * The color of the the object
22
22
  */
23
- color?: string | (string | number | string[])[];
23
+ color?: string | number | (string | number | (number | string | (number | string)[])[])[];
24
24
  }
@@ -22,7 +22,6 @@
22
22
  }
23
23
  },
24
24
  "minItems": 1,
25
- "default": [],
26
25
  "description": "URLs"
27
26
  },
28
27
  "normalize": {
@@ -20,6 +20,7 @@
20
20
  "color": {
21
21
  "oneOf": [
22
22
  { "type": "string" },
23
+ { "type": "number" },
23
24
  {
24
25
  "type": "array",
25
26
  "items": {
@@ -28,14 +29,24 @@
28
29
  { "type": "number" },
29
30
  {
30
31
  "type": "array",
31
- "items": { "type": "string" }
32
+ "items": {
33
+ "anyOf": [
34
+ { "type": "number" },
35
+ { "type": "string" },
36
+ {
37
+ "type": "array",
38
+ "items": {
39
+ "anyOf": [{ "type": "number" }, { "type": "string" }]
40
+ }
41
+ }
42
+ ]
43
+ }
32
44
  }
33
45
  ]
34
46
  }
35
47
  }
36
48
  ],
37
- "description": "The color of the the object",
38
- "default": "#FF0000"
49
+ "description": "The color of the the object"
39
50
  }
40
51
  }
41
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/schema",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A JupyterGIS schema package.",
5
5
  "keywords": [
6
6
  "jupytergis"