vendekagon-labs / unify

An engine for automating data integration & harmonization via schema inference.
Apache License 2.0
8 stars 0 forks source link

Generate json schema #53

Closed benkamphaus closed 4 weeks ago

benkamphaus commented 4 weeks ago

Adds a new command line task to Unify that infers a JSON schema specification for a particular Unify schema and outputs it to a JSON file. This file can then be used to constraint import config YAML editing in an editor. Editing function verified in VSCode with the Red Hat YAML extension and in JetBrains IntelliJ and PyCharm, via their documented routes for adding a JSON schema spec for YAML Editing.

Testing this functionality is not trivial re: deps, easier for CLI but adds deps. Possibly a priority to test this way in the future but deferred for now, so changes to JSON schema generation should go through manual verification re: editor use on import config YAML.

Resolves #52