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

🚀 [Feature]: validator tag, default tag in body or params parse #1966

Closed
3 tasks done
hotrungnhan opened this issue Jul 6, 2022 · 1 comment
Closed
3 tasks done

Comments

@hotrungnhan
Copy link

hotrungnhan commented Jul 6, 2022

Feature Description

Validator body or params in controller is a bit lazzy and make a bunch of duplicated code.
Hope in v3 We can put an optional validator or dèault function in fiber config and recall it in very single parser ?

Additional Context (optional)

No response

Code Snippet (optional)

package main

import "github.com/gofiber/fiber/v2"
import "log"

func main() {
  app := fiber.New()

  // An example to describe the feature

  log.Fatal(app.Listen(":3000"))
}

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my suggestion prior to opening this one.
  • I understand that improperly formatted feature requests may be closed without explanation.
@hotrungnhan hotrungnhan changed the title 🚀 [Feature]: validator tag, default tag in body parse 🚀 [Feature]: validator tag, default tag in body or params parse Jul 6, 2022
@ReneWerner87 ReneWerner87 added the v3 label Jul 6, 2022
@efectn
Copy link
Member

efectn commented Jul 6, 2022

It'll be done in #1821

@efectn efectn closed this as completed Jul 6, 2022
@ReneWerner87 ReneWerner87 added this to the v3 milestone Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants