-
Notifications
You must be signed in to change notification settings - Fork 267
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
Add config validation via json-schema #1547
base: master
Are you sure you want to change the base?
Conversation
Ooh, this looks very nice in the documentation! I can see how this will drastically improve maintenance of documentation! https://pypsa-eur--1547.org.readthedocs.build/en/1547/configuration.html#top-level-configuration |
this is lovely! |
I have the feeling this could be a super solid entry point for a dashboard/GUI from where you can trigger snakemake with a given set of configs |
Saame 💃🚀 I just realized that there are already optional keys which are not in the default (e.g. #1532). Do the config tables then cover everything? |
that's also new to me (or I forgot about it). I would prefer a default config where all supported config are listed, just to have the visibility, but that's another issue it seems. |
I agree with @FabianHofmann. I think even almost all possible config settings are covered in |
Closes #1514
Changes proposed in this Pull Request
As discussed in #1514:
doc/configtables
and integrates the schema into the documentation instead.This just implements the schema for the top level configuration. If you agree, I will add this for everything else
Examples
Type check:
Simple enum check:
Checklist
doc/release_notes.rst
is added.