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

Improve configuration management #152

Open
giffels opened this issue Jun 3, 2020 · 3 comments
Open

Improve configuration management #152

giffels opened this issue Jun 3, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@giffels
Copy link
Member

giffels commented Jun 3, 2020

The configuration management is missing reasonable error messages, which should be improved in the future.
In addition, it would be nice to add a possibilty to flag options as optional. This would help to differentiate "optional flag not present" from "real error".

@maxfischer2781
Copy link
Member

Do you think it would be possible to transition from arbitrary Configurations to typed/annotated? That would allow to automatically create readers, validation and docs.

I've heard some good things about pydantic in that regard. Not sure if that fits our usecase completely, but could probably do the heavy lifting.

@giffels
Copy link
Member Author

giffels commented Feb 18, 2021

Honestly, I like that idea. I also heared about pydantic maybe we should take a closer look into that, how well this fits our usecase. Do you agree that configuration validation should be part of COBalD?

@maxfischer2781
Copy link
Member

You are right, this would fit well into cobald. It seems generic enough to apply to all plugins and the cobald pipelines themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants