Skip to content

Commit

Permalink
chore: simplify schema
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Mar 5, 2020
1 parent 5899f3e commit 17c1e81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build/vega-lite-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7621,7 +7621,7 @@
],
"type": "object"
},
"GenericFacetSpec<FacetedUnitSpec,LayerSpec,Field>": {
"NormalizedFacetSpec": {
"additionalProperties": false,
"description": "Base interface for a facet specification.",
"properties": {
Expand Down Expand Up @@ -7740,7 +7740,7 @@
],
"type": "object"
},
"GenericFacetSpec<FacetedUnitSpec,LayerSpec,FieldName>": {
"FacetSpec": {
"additionalProperties": false,
"description": "Base interface for a facet specification.",
"properties": {
Expand Down Expand Up @@ -8019,7 +8019,7 @@
"$ref": "#/definitions/RepeatSpec"
},
{
"$ref": "#/definitions/GenericFacetSpec<FacetedUnitSpec,LayerSpec,Field>"
"$ref": "#/definitions/NormalizedFacetSpec"
},
{
"$ref": "#/definitions/NormalizedConcatSpec<GenericSpec>"
Expand All @@ -8045,7 +8045,7 @@
"$ref": "#/definitions/RepeatSpec"
},
{
"$ref": "#/definitions/GenericFacetSpec<FacetedUnitSpec,LayerSpec,FieldName>"
"$ref": "#/definitions/FacetSpec"
},
{
"$ref": "#/definitions/ConcatSpec<GenericSpec>"
Expand Down
4 changes: 2 additions & 2 deletions scripts/rename-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ perl -pi -e s,'<Field\,','<',g build/vega-lite-schema.json
perl -pi -e s,'<StandardType>','',g build/vega-lite-schema.json

perl -pi -e s,'CompositeEncoding','Encoding',g build/vega-lite-schema.json
perl -pi -e s,'Generic(.*)<FacetedUnitSpec\,LayerSpec\,.*\,FieldName>','\1',g build/vega-lite-schema.json
perl -pi -e s,'Generic(.*)<FacetedUnitSpec\,LayerSpec\,.*\,Field>','Normalized\1',g build/vega-lite-schema.json
perl -pi -e s,'Generic(.*)<FacetedUnitSpec\,LayerSpec\,?.*\,FieldName>','\1',g build/vega-lite-schema.json
perl -pi -e s,'Generic(.*)<FacetedUnitSpec\,LayerSpec\,?.*\,Field>','Normalized\1',g build/vega-lite-schema.json

perl -pi -e s,'ValueDef(.*)\<\(number\|\\\"width\\\"\)\>','XValueDef\1',g build/vega-lite-schema.json
perl -pi -e s,'ValueDef(.*)\<\(number\|\\\"height\\\"\)\>','YValueDef\1',g build/vega-lite-schema.json
Expand Down

0 comments on commit 17c1e81

Please sign in to comment.