diff --git a/CHANGELOG.md b/CHANGELOG.md index 94bb755..5a45fae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,28 @@ > As of v1.4.0, release candidates will be published in an effort to get new features out faster while still allowing > time for full QA testing before moving the release candidate to a full release. +## v2.1.2 [2025-03-14] + +__What's New:__ + +* None + +__Enhancements:__ + +* None + +__Bug Fixes:__ + +* Fixed missing underscore string replace in global field names. + +__Dependencies:__ + +* None + +__Other:__ + +* None + ## v2.1.1 [2025-03-13] __What's New:__ diff --git a/src/pybritive/__init__.py b/src/pybritive/__init__.py index 55fa725..f811561 100644 --- a/src/pybritive/__init__.py +++ b/src/pybritive/__init__.py @@ -1 +1 @@ -__version__ = '2.1.1' +__version__ = '2.1.2' diff --git a/src/pybritive/helpers/config.py b/src/pybritive/helpers/config.py index ea9c0b1..ce1fbd6 100644 --- a/src/pybritive/helpers/config.py +++ b/src/pybritive/helpers/config.py @@ -258,7 +258,7 @@ def validate(self): def validate_global(self, section, fields): for field, value in fields.items(): - if field not in global_fields: + if field.replace('-', '_') not in global_fields: self.validation_error_messages.append(f'Invalid {section} field {field} provided.') if field == 'output_format' and value not in output_format_choices.choices: error = f'Invalid {section} field {field} value {value} provided. Invalid value choice.'