8000 Update validator function name in examples to show that value must b… by michaelriri · Pull Request #3327 · pydantic/pydantic · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@michaelriri
Copy link
Contributor
@michaelriri michaelriri commented Oct 16, 2021

I was reading the docs as a new user and I noticed the validator method name did not match what the validator was doing.

Change Summary

Changed the validator method name in the Custom Errors example to more accurately describe what the validator is doing; changed from name_must_contain_space to value_must_equal_bar.

Related issue number

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • changes/<pull request or issue id>-<github username>.md file added describing change
    (see changes/README.md for details)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@michaelriri
Copy link
Contributor Author

please review

@samuelcolvin
Copy link
Member

good catch, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0