Skip to content

Add an option to override the protovalidate validator#23

Merged
pkwarren merged 2 commits intomainfrom
pkw/global-validator-by-default
Apr 15, 2026
Merged

Add an option to override the protovalidate validator#23
pkwarren merged 2 commits intomainfrom
pkw/global-validator-by-default

Conversation

@pkwarren
Copy link
Copy Markdown
Member

Validator instances are not cheap, so by default use the global validator instead of allocating a new one in the server handlers. Add options to allow users to override the validator if needed.

The other changes are code hygiene - updating to support the last two versions of Go and bumping golangci-lint to the latest v2.

Validator instances are not cheap, so by default use the global
validator instead of allocating a new one in the server handlers. Add
options to allow users to override the validator if needed.

The other changes are code hygiene - updating to support the last two
versions of Go and bumping golangci-lint to the latest v2.
@pkwarren pkwarren requested a review from emcfarlane April 15, 2026 17:26
@pkwarren pkwarren merged commit 5aadc25 into main Apr 15, 2026
4 checks passed
@pkwarren pkwarren deleted the pkw/global-validator-by-default branch April 15, 2026 17:48
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