Skip to content

Conversation

@stefanvanburen
Copy link
Member

Brings us full circle, effectively backing out #323.

Resolves #362.

@stefanvanburen stefanvanburen marked this pull request as ready for review August 26, 2025 22:27
stefanvanburen added a commit that referenced this pull request Aug 26, 2025
At risk of Chesterton's fencing myself, but I don't think this argument
is needed or ever used (other than in tests). I can't think of a reason
why someone would want to shove multiple validations into the same
validation, instead of simply calling `collect_violations` multiple
times and combining the lists afterwards.

I did some `git blame` spelunking and it looks like this originally
turned up in #32, but didn't see much reasoning for it in that PR. The
PR mentioned both Pydantic and making things closer to
protovalidate-go's API, but neither seem to have a similar style of
reusing a returned error/exception like this.

Stacked on #364 as these both munge with the exported API & docstrings;
will tag a `v0.15.0` release once all of this is merged.
@stefanvanburen stefanvanburen merged commit 9d49e82 into main Aug 26, 2025
23 checks passed
@stefanvanburen stefanvanburen deleted the svanburen/remove-config branch August 26, 2025 23:56
stefanvanburen added a commit that referenced this pull request Aug 27, 2025
At risk of Chesterton's fencing myself, but I don't think this argument
is needed or ever used (other than in tests). I can't think of a reason
why someone would want to shove multiple validations into the same
validation, instead of simply calling `collect_violations` multiple
times and combining the lists afterwards.

I did some `git blame` spelunking and it looks like this originally
turned up in #32, but didn't see much reasoning for it in that PR. The
PR mentioned both Pydantic and making things closer to
protovalidate-go's API, but neither seem to have a similar style of
reusing a returned error/exception like this.

Stacked on #364 as these both munge with the exported API & docstrings;
will tag a `v0.15.0` release once all of this is merged.
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.

Drop Config and go back to kwargs on validate

2 participants