Improvements for read_optional_key
implementation
#284
Labels
enhancement
New feature or request
priority:low
Low priority Issues that do not need to be addressed in the near future.
testing
Add unit/integration tests
The
read_optional_key
function was added in PR #238:benchcab/src/benchcab/config.py
Lines 74 to 121 in 5c526e4
Instead of hard coding default values for each field within the function, we can use the schema itself to set default values for missing fields in the document. The cerberus python package provides normalization rules which support this functionality. This approach would also lets us change default values for specific fields in the future without breaking the test suite.
The text was updated successfully, but these errors were encountered: