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

openapi3filter: add context to Validator Middleware's ErrFunc and LogFunc functions #953

Merged
merged 2 commits into from
Jun 2, 2024

Conversation

crissi98
Copy link
Contributor

@crissi98 crissi98 commented Jun 1, 2024

This feature modifies the ErrFunc and LogFunc of the validator, just as described in #472
In contrast to the change described in the issue, this is not a breaking changes, since it adds additional functions to set the LogFunc and the ErrFunc instead of overwriting the existing ones.

@fenollp
Copy link
Collaborator

fenollp commented Jun 2, 2024

Hi! Thanks for taking interest in this!

Really, let's perpetrate the tiny API breakage this patch entails, please. As a solo maintainer I'm always happy to keep the API surface low.

Also be sure to push the diffs from .github/docs once you run ./docs.sh. It'll help with CI.

@crissi98
Copy link
Contributor Author

crissi98 commented Jun 2, 2024

Thanks for your feedback!

I implemented the changes as you suggested by updating the existing functions instead of creating new ones.

Also, the .github/docs are fixed.

@fenollp fenollp changed the title add context to Validator Middleware's ErrFunc and LogFunc functions openapi3filter: add context to Validator Middleware's ErrFunc and LogFunc functions Jun 2, 2024
@fenollp fenollp merged commit 45b4399 into getkin:master Jun 2, 2024
7 checks passed
fenollp added a commit to fenollp/kin-openapi that referenced this pull request Jun 2, 2024
fenollp added a commit that referenced this pull request Jun 2, 2024
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.

Consider adding context to Validator Middleware's ErrFunc and LogFunc functions
2 participants