Skip to content

Commit

Permalink
chore: upgrade Vega-Lite and rebuild schemas (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jul 10, 2022
1 parent dc8a190 commit d81e3bb
Show file tree
Hide file tree
Showing 11 changed files with 310 additions and 298 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -77,7 +77,7 @@
"prettier": "^2.5.1",
"ts-node": "^10.4.0",
"vega": "^5.21.0",
"vega-lite": "^5.2.0"
"vega-lite": "^5.3.0"
},
"scripts": {
"prepublishOnly": "yarn build",
Expand Down
10 changes: 6 additions & 4 deletions test/valid-data/annotation-example/schema.json
Expand Up @@ -6,17 +6,19 @@
"type": "string"
},
"MyObject": {
"additionalProperties": false,
"examples": [
{ "nested": "hello" }
{
"nested": "hello"
}
],
"additionalProperties": false,
"properties": {
"nested": {
"$ref": "#/definitions/MyNestedObject",
"examples": [
"Hello world",
"This string rocks"
],
"$ref": "#/definitions/MyNestedObject"
]
}
},
"required": [
Expand Down
48 changes: 24 additions & 24 deletions test/valid-data/annotation-id/schema.json
@@ -1,25 +1,25 @@
{
"$id": "Test",
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/MyObject",
"definitions": {
"MyNestedObject": {
"$id": "#MyNestedObject",
"additionalProperties": false,
"type": "object"
},
"MyObject": {
"$id": "#MyObject",
"additionalProperties": false,
"properties": {
"nested": {
"$ref": "#/definitions/MyNestedObject"
}
},
"required": [
"nested"
],
"type": "object"
}
}
}
"$id": "Test",
"$ref": "#/definitions/MyObject",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"MyNestedObject": {
"$id": "#MyNestedObject",
"additionalProperties": false,
"type": "object"
},
"MyObject": {
"$id": "#MyObject",
"additionalProperties": false,
"properties": {
"nested": {
"$ref": "#/definitions/MyNestedObject"
}
},
"required": [
"nested"
],
"type": "object"
}
}
}
15 changes: 8 additions & 7 deletions test/valid-data/annotation-ref/schema.json
Expand Up @@ -5,19 +5,20 @@
"MyObject": {
"additionalProperties": false,
"properties": {
"nested": {
"myObject": {
"$ref": "http://json-schema.org/draft-07/schema#",
"title": "Nested title",
"description": "Nested description"
"description": "MyObject description",
"title": "MyObject title"
},
"myObject": {
"nested": {
"$ref": "http://json-schema.org/draft-07/schema#",
"title": "MyObject title",
"description": "MyObject description"
"description": "Nested description",
"title": "Nested title"
}
},
"required": [
"nested", "myObject"
"nested",
"myObject"
],
"type": "object"
}
Expand Down
66 changes: 33 additions & 33 deletions test/valid-data/string-template-expression-literals/schema.json
@@ -1,37 +1,37 @@
{
"$ref": "#/definitions/MyObject",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"MyObject": {
"additionalProperties": false,
"properties": {
"_foo": {
"enum": [
"__ok_id",
"__fail_id",
"__abort_id"
],
"type": "string"
},
"foo": {
"enum": [
"ok",
"fail",
"abort"
],
"type": "string"
},
"ok": {
"const": "id_ok",
"type": "string"
}
},
"required": [
"foo",
"_foo",
"ok"
],
"type": "object"
"$ref": "#/definitions/MyObject",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"MyObject": {
"additionalProperties": false,
"properties": {
"_foo": {
"enum": [
"__ok_id",
"__fail_id",
"__abort_id"
],
"type": "string"
},
"foo": {
"enum": [
"ok",
"fail",
"abort"
],
"type": "string"
},
"ok": {
"const": "id_ok",
"type": "string"
}
},
"required": [
"foo",
"_foo",
"ok"
],
"type": "object"
}
}
}
38 changes: 19 additions & 19 deletions test/valid-data/string-template-literals/schema.json
@@ -1,23 +1,23 @@
{
"$ref": "#/definitions/MyObject",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"MyObject": {
"additionalProperties": false,
"properties": {
"foo": {
"enum": [
"ok",
"fail",
"abort"
],
"type": "string"
}
},
"required": [
"foo"
],
"type": "object"
"$ref": "#/definitions/MyObject",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"MyObject": {
"additionalProperties": false,
"properties": {
"foo": {
"enum": [
"ok",
"fail",
"abort"
],
"type": "string"
}
},
"required": [
"foo"
],
"type": "object"
}
}
}
68 changes: 34 additions & 34 deletions test/valid-data/type-intersection-recursive-interface/schema.json
@@ -1,40 +1,40 @@
{
"$ref": "#/definitions/Intersection",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Container": {
"additionalProperties": false,
"properties": {
"children": {
"items": {
"$ref": "#/definitions/Container"
},
"type": "array"
}
},
"required": [
"children"
],
"type": "object"
"$ref": "#/definitions/Intersection",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Container": {
"additionalProperties": false,
"properties": {
"children": {
"items": {
"$ref": "#/definitions/Container"
},
"type": "array"
}
},
"Intersection": {
"additionalProperties": false,
"properties": {
"children": {
"items": {
"$ref": "#/definitions/Container"
},
"type": "array"
"required": [
"children"
],
"type": "object"
},
"Intersection": {
"additionalProperties": false,
"properties": {
"children": {
"items": {
"$ref": "#/definitions/Container"
},
"x": {
"type": "number"
}
"type": "array"
},
"required": [
"children",
"x"
],
"type": "object"
}
"x": {
"type": "number"
}
},
"required": [
"children",
"x"
],
"type": "object"
}
}
}

0 comments on commit d81e3bb

Please sign in to comment.