flamingo icon indicating copy to clipboard operation
flamingo copied to clipboard

provide Bind methods like gin framework

Open teckick opened this issue 3 years ago • 1 comments

Bind methods are provided in gin.Context: https://pkg.go.dev/github.com/gin-gonic/gin#readme-model-binding-and-validation

It is useful when post json struct data in request body.

Will flamingo provide similar api in the future?

teckick avatar May 03 '21 01:05 teckick

Hello,

thank you for your request. Currently we do not have this on the roadmap.

For processing input data and validation we currently rely on our form module (https://github.com/i-love-flamingo/form). The module can currently only process form data. However, we could imagine that in the future it will also support other data structures such as JSON and XML.

Hope this helps you for now. Feel free to reach out with further questions.

tessig avatar May 06 '21 13:05 tessig