Skip to content

Commit 57843db

Browse files
authored
Merge pull request #197 from britive/fix/underscored
fix/underscored
2 parents 4f3d269 + a58133f commit 57843db

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@
33
> As of v1.4.0, release candidates will be published in an effort to get new features out faster while still allowing
44
> time for full QA testing before moving the release candidate to a full release.
55
6+
## v2.1.2 [2025-03-14]
7+
8+
__What's New:__
9+
10+
* None
11+
12+
__Enhancements:__
13+
14+
* None
15+
16+
__Bug Fixes:__
17+
18+
* Fixed missing underscore string replace in global field names.
19+
20+
__Dependencies:__
21+
22+
* None
23+
24+
__Other:__
25+
26+
* None
27+
628
## v2.1.1 [2025-03-13]
729

830
__What's New:__

src/pybritive/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.1'
1+
__version__ = '2.1.2'

src/pybritive/helpers/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def validate(self):
258258

259259
def validate_global(self, section, fields):
260260
for field, value in fields.items():
261-
if field not in global_fields:
261+
if field.replace('-', '_') not in global_fields:
262262
self.validation_error_messages.append(f'Invalid {section} field {field} provided.')
263263
if field == 'output_format' and value not in output_format_choices.choices:
264264
error = f'Invalid {section} field {field} value {value} provided. Invalid value choice.'

0 commit comments

Comments
 (0)