Closed VannTen closed 1 year ago
/lgtm /approve
thanks!
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: codificat
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Related Issues and Dependencies
related to #205
This introduces a breaking change
This should yield a new module release
This Pull Request implements
Validate the prescriptions before writing them. Crash otherwise
Follow-ups
Ideally, we should rather not use yaml at all in the Python code in the various handlers, but Python dicts/prescriptions dataclass (and yaml.dump() to the prescriptions files). However, this should at least stop the refresh job to add invalid prescriptions.
Currently the exception thrown if the content does not validate is not handled. How should we do that, log at CRITICAL then
return false
?