Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

Commit

Permalink
Remove constants from v8 reference schema
Browse files Browse the repository at this point in the history
Issue: #340
  • Loading branch information
scothis authored and jfirebaugh committed Aug 17, 2015
1 parent 6c84895 commit eb01ce6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
7 changes: 7 additions & 0 deletions lib/validate/parsed.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ module.exports = function(style, reference) {
validate['*'] = function() {};

validate('', style, reference.$root);
if (reference.$version > 7 && style.constants) {
validate.constants('constants', style.constants);
}

errors.sort(function (a, b) {
return a.line - b.line;
});

return errors;
};
Expand Down
10 changes: 0 additions & 10 deletions reference/v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,13 @@
"type": "transition",
"doc": "A global transition definition to use as a default across properties."
},
"constants": {
"type": "constants",
"doc": "An object of constants to be referenced in layers."
},
"layers": {
"required": true,
"type": "array",
"value": "layer",
"doc": "Layers will be drawn in the order of this array."
}
},
"constants": {
"*": {
"type": "*",
"doc": "A constant that will be replaced verbatim in the referencing place. This can be anything, including objects and arrays. All variable names must be prefixed with an `@` symbol."
}
},
"sources": {
"*": {
"type": "source",
Expand Down

0 comments on commit eb01ce6

Please sign in to comment.