Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add command to generate JSON schema of config (dc) #240

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

danielchalef
Copy link
Member

@danielchalef danielchalef commented Oct 20, 2023

ref #239 . Copied in order to run tests. Thanks to @kaiiorg

Addresses #206 by adding a simple cobra command to use jsonschema to generate a JSON schema of config.Config.

Use it with zep json-schema. If you want the results in a file, try zep json-schema > zep_config_schema.json

This can certainly be enhanced further: jsonschema has many features that might be useful and some might want the resulting JSON pretty-printed.

  • Add command to generate JSON schema of config
  • minor niggles

@danielchalef danielchalef temporarily deployed to build-test October 20, 2023 21:15 — with GitHub Actions Inactive
@danielchalef danielchalef merged commit 0b5e020 into main Oct 20, 2023
6 of 7 checks passed
@danielchalef danielchalef deleted the feature/json-schema branch November 13, 2023 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants