Skip to content

Commit

Permalink
Fix typo in the rename script
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Jun 11, 2017
1 parent 28a18bc commit 012807d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
54 changes: 27 additions & 27 deletions build/vega-lite-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1266,49 +1266,49 @@
],
"type": "object"
},
"ConditionNumberLegendDef": {
"ConditionalNumberLegendDef": {
"anyOf": [
{
"$ref": "#/definitions/ConditionNumberLegendFieldDef"
"$ref": "#/definitions/ConditionalNumberLegendFieldDef"
},
{
"$ref": "#/definitions/ConditionNumberLegendValueDef"
"$ref": "#/definitions/ConditionalNumberLegendValueDef"
},
{
"$ref": "#/definitions/ConditionOnlyNumberLegendDef"
}
],
"description": "Generic type for conditional channelDef.\nF defines the underlying FieldDef type while V defines the underlying ValueDef type."
},
"ConditionStringLegendDef": {
"ConditionalStringLegendDef": {
"anyOf": [
{
"$ref": "#/definitions/ConditionStringLegendFieldDef"
"$ref": "#/definitions/ConditionalStringLegendFieldDef"
},
{
"$ref": "#/definitions/ConditionStringLegendValueDef"
"$ref": "#/definitions/ConditionalStringLegendValueDef"
},
{
"$ref": "#/definitions/ConditionOnlyStringLegendDef"
}
],
"description": "Generic type for conditional channelDef.\nF defines the underlying FieldDef type while V defines the underlying ValueDef type."
},
"ConditionTextDef": {
"ConditionalTextDef": {
"anyOf": [
{
"$ref": "#/definitions/ConditionTextFieldDef"
"$ref": "#/definitions/ConditionalTextFieldDef"
},
{
"$ref": "#/definitions/ConditionTextValueDef"
"$ref": "#/definitions/ConditionalTextValueDef"
},
{
"$ref": "#/definitions/ConditionOnlyTextDef"
}
],
"description": "Generic type for conditional channelDef.\nF defines the underlying FieldDef type while V defines the underlying ValueDef type."
},
"ConditionNumberLegendFieldDef": {
"ConditionalNumberLegendFieldDef": {
"additionalProperties": false,
"description": "A FieldDef with ConditionValueDef\n{\n condition: {value: ...},\n field: ...,\n ...\n}",
"properties": {
Expand Down Expand Up @@ -1379,7 +1379,7 @@
],
"type": "object"
},
"ConditionStringLegendFieldDef": {
"ConditionalStringLegendFieldDef": {
"additionalProperties": false,
"description": "A FieldDef with ConditionValueDef\n{\n condition: {value: ...},\n field: ...,\n ...\n}",
"properties": {
Expand Down Expand Up @@ -1450,7 +1450,7 @@
],
"type": "object"
},
"ConditionTextFieldDef": {
"ConditionalTextFieldDef": {
"additionalProperties": false,
"description": "A FieldDef with ConditionValueDef\n{\n condition: {value: ...},\n field: ...,\n ...\n}",
"properties": {
Expand Down Expand Up @@ -1501,7 +1501,7 @@
],
"type": "object"
},
"ConditionNumberLegendValueDef": {
"ConditionalNumberLegendValueDef": {
"additionalProperties": false,
"description": "A ValueDef with ConditionValueDef | FieldDef\n{\n condition: {field: ...} | {value: ...},\n value: ...,\n}",
"properties": {
Expand All @@ -1525,7 +1525,7 @@
],
"type": "object"
},
"ConditionStringLegendValueDef": {
"ConditionalStringLegendValueDef": {
"additionalProperties": false,
"description": "A ValueDef with ConditionValueDef | FieldDef\n{\n condition: {field: ...} | {value: ...},\n value: ...,\n}",
"properties": {
Expand All @@ -1549,7 +1549,7 @@
],
"type": "object"
},
"ConditionTextValueDef": {
"ConditionalTextValueDef": {
"additionalProperties": false,
"description": "A ValueDef with ConditionValueDef | FieldDef\n{\n condition: {field: ...} | {value: ...},\n value: ...,\n}",
"properties": {
Expand Down Expand Up @@ -1914,7 +1914,7 @@
"additionalProperties": false,
"properties": {
"color": {
"$ref": "#/definitions/ConditionStringLegendDef",
"$ref": "#/definitions/ConditionalStringLegendDef",
"description": "Color of the marks – either fill or stroke color based on mark type.\n(By default, fill color for `area`, `bar`, `tick`, `text`, `circle`, and `square` /\nstroke color for `line` and `point`.)"
},
"detail": {
Expand All @@ -1932,7 +1932,7 @@
"description": "Additional levels of detail for grouping data in aggregate views and\nin line and area marks without mapping data to a specific visual channel."
},
"opacity": {
"$ref": "#/definitions/ConditionNumberLegendDef",
"$ref": "#/definitions/ConditionalNumberLegendDef",
"description": "Opacity of the marks – either can be a value or a range."
},
"order": {
Expand All @@ -1950,19 +1950,19 @@
"description": "stack order for stacked marks or order of data points in line marks."
},
"shape": {
"$ref": "#/definitions/ConditionStringLegendDef",
"$ref": "#/definitions/ConditionalStringLegendDef",
"description": "The symbol's shape (only for `point` marks). The supported values are\n`\"circle\"` (default), `\"square\"`, `\"cross\"`, `\"diamond\"`, `\"triangle-up\"`,\nor `\"triangle-down\"`, or else a custom SVG path string."
},
"size": {
"$ref": "#/definitions/ConditionNumberLegendDef",
"$ref": "#/definitions/ConditionalNumberLegendDef",
"description": "Size of the mark.\n- For `point`, `square` and `circle`\n– the symbol size, or pixel area of the mark.\n- For `bar` and `tick` – the bar and tick's size.\n- For `text` – the text's font size.\n- Size is currently unsupported for `line` and `area`."
},
"text": {
"$ref": "#/definitions/ConditionTextDef",
"$ref": "#/definitions/ConditionalTextDef",
"description": "Text of the `text` mark."
},
"tooltip": {
"$ref": "#/definitions/ConditionTextDef",
"$ref": "#/definitions/ConditionalTextDef",
"description": "The tooltip text to show upon mouse hover."
},
"x": {
Expand Down Expand Up @@ -2016,7 +2016,7 @@
"additionalProperties": false,
"properties": {
"color": {
"$ref": "#/definitions/ConditionStringLegendDef",
"$ref": "#/definitions/ConditionalStringLegendDef",
"description": "Color of the marks – either fill or stroke color based on mark type.\n(By default, fill color for `area`, `bar`, `tick`, `text`, `circle`, and `square` /\nstroke color for `line` and `point`.)"
},
"column": {
Expand All @@ -2038,7 +2038,7 @@
"description": "Additional levels of detail for grouping data in aggregate views and\nin line and area marks without mapping data to a specific visual channel."
},
"opacity": {
"$ref": "#/definitions/ConditionNumberLegendDef",
"$ref": "#/definitions/ConditionalNumberLegendDef",
"description": "Opacity of the marks – either can be a value or a range."
},
"order": {
Expand All @@ -2060,19 +2060,19 @@
"description": "Vertical facets for trellis plots."
},
"shape": {
"$ref": "#/definitions/ConditionStringLegendDef",
"$ref": "#/definitions/ConditionalStringLegendDef",
"description": "The symbol's shape (only for `point` marks). The supported values are\n`\"circle\"` (default), `\"square\"`, `\"cross\"`, `\"diamond\"`, `\"triangle-up\"`,\nor `\"triangle-down\"`, or else a custom SVG path string."
},
"size": {
"$ref": "#/definitions/ConditionNumberLegendDef",
"$ref": "#/definitions/ConditionalNumberLegendDef",
"description": "Size of the mark.\n- For `point`, `square` and `circle`\n– the symbol size, or pixel area of the mark.\n- For `bar` and `tick` – the bar and tick's size.\n- For `text` – the text's font size.\n- Size is currently unsupported for `line` and `area`."
},
"text": {
"$ref": "#/definitions/ConditionTextDef",
"$ref": "#/definitions/ConditionalTextDef",
"description": "Text of the `text` mark."
},
"tooltip": {
"$ref": "#/definitions/ConditionTextDef",
"$ref": "#/definitions/ConditionalTextDef",
"description": "The tooltip text to show upon mouse hover."
},
"x": {
Expand Down
12 changes: 6 additions & 6 deletions scripts/rename-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ perl -pi -e s,'ValueDef<number>','NumberValueDef',g build/vega-lite-schema.json

perl -pi -e s,'Condition<(.*)>','Condition\1',g build/vega-lite-schema.json

perl -pi -e s,'Conditional<TextFieldDef\,TextValueDef>','ConditionTextDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionalFieldDef<TextFieldDef\,TextValueDef>','ConditionTextFieldDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionalValueDef<TextFieldDef\,TextValueDef>','ConditionTextValueDef',g build/vega-lite-schema.json
perl -pi -e s,'Conditional<TextFieldDef\,TextValueDef>','ConditionalTextDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionalFieldDef<TextFieldDef\,TextValueDef>','ConditionalTextFieldDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionalValueDef<TextFieldDef\,TextValueDef>','ConditionalTextValueDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionOnlyDef<TextFieldDef\,TextValueDef>','ConditionOnlyTextDef',g build/vega-lite-schema.json

perl -pi -e s,'Conditional<LegendFieldDef\,(.*)ValueDef>','Condition\1LegendDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionalFieldDef<LegendFieldDef\,(.*)ValueDef>','Condition\1LegendFieldDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionalValueDef<LegendFieldDef\,(.*)ValueDef>','Condition\1LegendValueDef',g build/vega-lite-schema.json
perl -pi -e s,'Conditional<LegendFieldDef\,(.*)ValueDef>','Conditional\1LegendDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionalFieldDef<LegendFieldDef\,(.*)ValueDef>','Conditional\1LegendFieldDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionalValueDef<LegendFieldDef\,(.*)ValueDef>','Conditional\1LegendValueDef',g build/vega-lite-schema.json
perl -pi -e s,'ConditionOnlyDef<LegendFieldDef\,(.*)ValueDef>','ConditionOnly\1LegendDef',g build/vega-lite-schema.json

perl -pi -e s,'LogicalOperand<string>','LogicalOperand',g build/vega-lite-schema.json
Expand Down

0 comments on commit 012807d

Please sign in to comment.