You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Fiber has BodyParser function to parse request into the given interface. We can check that the interface has the Validation method and call it to see the parsed request is valid or not.
Describe alternatives you've considered
Validation may seem like an overkill feature, but I think it can reduce the handler code that is written for fiber.
Additional context
The following code shows a request with its validation method.
@1995parham, we think that validation is up to the user. There are a 1000 ways to validate data, you could write your own middleware for it. Fiber is designed to be minimal but flexible.
Is your feature request related to a problem?
No
Describe the solution you'd like
Fiber has
BodyParser
function to parse request into the given interface. We can check that the interface has theValidation
method and call it to see the parsed request is valid or not.Describe alternatives you've considered
Validation may seem like an overkill feature, but I think it can reduce the handler code that is written for fiber.
Additional context
The following code shows a request with its validation method.
Fiber can check the validation method and call it if it is there on the given request.
The text was updated successfully, but these errors were encountered: