Skip to content

Conversation

@smaye81
Copy link
Contributor

@smaye81 smaye81 commented Mar 27, 2025

WIP

smaye81 and others added 3 commits March 24, 2025 12:01
This enhances the current `isEmail` validation by using a consistent
regex that will be used across protovalidate implementations.
This ports the validation logic from `protovalidate-go` for validating
URIs and URI references. As a result, all conformance tests for 0.10.3
related to these validations are now passing.

This uses a single underscore for protected class members and a
double-underscore for private class methods to use name-mangling. There
are varying recommendations on how to structure these (for example,
Effective Python recommends public members, some recommendations suggest
a single-underscore for class methods, etc.).

The current pattern in protovalidate-python seems to use a single
underscore for module-level functions, which we could certainly adopt
for classes. I'm open to whatever is the established pattern that we
should adopt.
@smaye81 smaye81 closed this Apr 23, 2025
@smaye81 smaye81 deleted the sayers/rename_constraint_to_rule branch April 23, 2025 18:45
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