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

Add additional typecheck to curie validation #542

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

matentzn
Copy link
Collaborator

Due to the lack of type safety, i can pass a non string to the _is_curie method, which causes the method to fail hard when its trying to do regex matching.

Here, i add an additional safety net around the matching processing, making sure the value is not None, and is indeed a string (and not a number or some other kind of non-string).

Due to the lack of type safety, i can pass a non string to the `_is_curie` method, which causes the method to fail hard when its trying to do regex matching.

Here, i add an additional safety net around the matching processing, making sure the value is not None, and is indeed a string (and not a number or some other kind of non-string).
@matentzn matentzn requested a review from ehartley June 18, 2024 08:17
Copy link

@ehartley ehartley left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for adding this fix!

@matentzn matentzn enabled auto-merge (squash) June 24, 2024 07:30
@matentzn matentzn disabled auto-merge June 24, 2024 07:30
@matentzn matentzn merged commit edf432a into master Jun 24, 2024
6 checks passed
@matentzn matentzn deleted the add-type-check-curie-validation branch June 24, 2024 07:31
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