Skip to content

Reduce redundancy in generated schema #1011

@marcprux

Description

@marcprux

Some structures in the generated vega-lite-schema.json are repeated multiple times. For example, the timeUnit enumeration is repeated verbatim 13 times throughout the schema. Detecting this redundancy and emitting repeated structures to a shared defs section of the schema would make it much more compact.

TODO:

  • add enum support to typescript-json-schema
  • change build process to generate schema using new typescript-json-schema
  • remove old schema generation process

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions