Context
As of right now we have 2 different functions for validating different parts of the config values:
- For checking if the ssh relevant configs are valid (i.e. no non-empty `repository, valid ssh url)
- For checking if the principals config values are not empty
The above though should be refactored, as there are currently mechanisms in place for better structure.
Two potential approaches to go with:
- Using
pydantic for validating the config options, which is what the Data Platform is doing
- Use a dedicated component (from Chisme's BaseCharm)
This came also up during #39 (comment)
What needs to get done
- Commit in which approach we want (pydantic vs component, or both)
- Refactor and remove the current functions for validating the config
Definition of Done
- We no longer use functions for validation, but use either components or pydantic
- Have converted the unit tests to work with the updated code
Context
As of right now we have 2 different functions for validating different parts of the config values:
The above though should be refactored, as there are currently mechanisms in place for better structure.
Two potential approaches to go with:
pydanticfor validating the config options, which is what the Data Platform is doingThis came also up during #39 (comment)
What needs to get done
Definition of Done