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

🚀 v3 Request: fiber.Error's message type of interface{} #1825

Closed
balcieren opened this issue Mar 20, 2022 · 1 comment · Fixed by #1925
Closed

🚀 v3 Request: fiber.Error's message type of interface{} #1825

balcieren opened this issue Mar 20, 2022 · 1 comment · Fixed by #1925
Assignees
Milestone

Comments

@balcieren
Copy link
Contributor

If fiber.Error's message's type will be interface{}, we can return multiple error messages etc.

Example

fiber.NewError(fiber.StatusBadRequest, fiber.Map{
  "type": "validation",
  "message": "email is invalid",
})
@efectn
Copy link
Member

efectn commented Mar 20, 2022

Same as #1728

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants