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

Fix behavior of required + ignore_empty constraints #97

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

rodaine
Copy link
Member

@rodaine rodaine commented Nov 7, 2023

Brings the python library in conformance with the revised spec around required and ignore_empty constraints. See bufbuild/protovalidate#115

The two # type: ignore comments are required as typeshed does not currently recognize the has_presence property on FieldDescriptor class. I may open an upstream patch to add it in (and audit the rest of the protobuf type definitions).

@rodaine rodaine requested a review from Alfus November 7, 2023 00:44
Copy link
Collaborator

@Alfus Alfus left a comment

Choose a reason for hiding this comment

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

Nice!

@rodaine rodaine merged commit 219c91b into main Nov 7, 2023
4 checks passed
@rodaine rodaine deleted the rodaine/required-ignore_empty branch November 7, 2023 01:22
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