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

Make error spans count length by validator, not by guard #855

Merged
merged 7 commits into from
Jun 25, 2024

Conversation

nichwch
Copy link
Collaborator

@nichwch nichwch commented Jun 25, 2024

No description provided.

zsimjee and others added 7 commits June 13, 2024 13:53
I've encountered an issue with the code example provided for using Guard with CompetitorCheck and ToxicLanguage. 
The issue is related to the syntax and the use of the use_many method in the Guard class.
Resolved - Error in Guard validation code example in README.md
@nichwch nichwch changed the base branch from main to 0.5.0-dev June 25, 2024 19:16
Comment on lines +89 to +91
validator_name = log.validator_name
if total_len_by_validator.get(validator_name) is None:
total_len_by_validator[validator_name] = 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

How does this work for structured data or other scenarios where the same validator may be used multiple times with different params

@zsimjee zsimjee merged commit 12c94e1 into 0.5.0-dev Jun 25, 2024
20 checks passed
@zsimjee zsimjee deleted the nichwch/fix-error-spans branch June 25, 2024 19:18
@nichwch nichwch restored the nichwch/fix-error-spans branch June 25, 2024 19:18
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.

4 participants