Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve NameList robustness and flexibility #320

Merged
merged 3 commits into from
Nov 16, 2024

Conversation

pederhan
Copy link
Member

@pederhan pederhan commented Nov 15, 2024

This PR makes the custom NameList type less brittle by not breaking when receiving values without a "name" key. The validator instead opts to filter out these dicts and log an error when it happens.

Tests have been added for a small variety of different inputs to the field.

Copy link
Collaborator

@terjekv terjekv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pederhan pederhan merged commit fd3a291 into unioslo:master Nov 16, 2024
6 checks passed
@pederhan pederhan deleted the improve-namelist branch November 16, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants