Skip to content

Commit

Permalink
removed ver fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Oct 31, 2017
1 parent 8c4e315 commit 07f5071
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions public/vega_view/parse_input_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ export function parseInputSpec(inputSpec, onWarning) {
spec.$schema = DEFAULT_SCHEMA;
}

// FIXME TODO: remove this switch statement once Vega-lite 2.0 is released
switch (spec.$schema) {
case 'https://vega.github.io/schema/vega-lite/v2.json':
case 'https://vega.github.io/schema/vega-lite/v2.0.json':
spec.$schema = 'https://vega.github.io/schema/vega-lite/v2.0.0-beta.json';
break;
}

const schema = schemaParser(spec.$schema);
const isVegaLite = schema.library === 'vega-lite';
const libVersion = isVegaLite ? vegaLite.version : vega.version;
Expand Down

0 comments on commit 07f5071

Please sign in to comment.