vega-schema

Generate the Vega JSON schema.

Usage no npm install needed!

<script type="module">
  import vegaSchema from 'https://cdn.skypack.dev/vega-schema';
</script>

README

vega-schema

Generate the Vega JSON schema.

Run yarn build to compile the schema-generating routines and generate the output JSON schema file.

API Reference

# exports.schema(definitions) <>

Generates the JSON schema, including entries for the provided transform definitions. The returned object can be serialized to an ouput JSON file using JSON.stringify.