3 ms·
I was expecting this to validate the configuration files are also valid for their use cases, not just valid JSON, TOML, etc. If you're looking for that and Pyt
by jmholla 3y ago
I was expecting this to validate the configuration files are also valid for their use cases, not just valid JSON, TOML, etc.
If you're looking for that and Python is your jam, the library cerberus[0] is very good at it.
[0]: https://github.com/pyeve/cerberus https://github.com/pyeve/cerberus
- treebeard5440 3y agoCool library and great suggestion. We hadn’t needed that level of validation (originally created to be a guard against syntax errors from manual edits) but I really like validation against use cases. Appreciate the feedback - this is exactly what I was hoping for when posting today
- BerislavLopac 3y agoCerberus seems to use some custom schema format, rather than a standard like JSON Schema?