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

Ability to disable validator middleware #319

Open
jopbrown opened this issue Jun 1, 2024 · 0 comments
Open

Ability to disable validator middleware #319

jopbrown opened this issue Jun 1, 2024 · 0 comments
Labels
feature new feature

Comments

@jopbrown
Copy link

jopbrown commented Jun 1, 2024

Currently, qmgo calls validate.Struct(doc) regardless of whether it's used or not. This adds unnecessary reflection overhead.

It would be better to make it optional for users to disable it. For example:

middleware.DisableValidator()
@jiangz222 jiangz222 added the feature new feature label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature
Projects
None yet
Development

No branches or pull requests

2 participants