-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
- fixed validation-guide #2517
- fixed validation-guide #2517
Conversation
Thanks for opening this pull request! 🎉 Please check out our contributing guidelines. If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also check indentions
fixed it, and yea i though that one of the modules i used already did have that name as package so i simply added |
@Z3NTL3 pls check again the whole code for the in indentions |
Hello, I have formatted everything with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated validator pkg import to v10
Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
Description
The old validation guide hosted on the docs was a bit outdated. It was good but, it was only for a single object type validation. Instead with this PR I have changed this. Now the validator can handle any type of object and validate within ease.
I have also made easy examples about how to make custom error message format when a context does not fit our validation scheme.
Type of change
Checklist: