Skip to content

Is there any plan to support "binding" struct tag for Bind() method? #872

@adred

Description

@adred

Echo is awesome in its own way and I don't want to compare it to another framework. But I'd like it to adapt the binding tag in Gin:

type Login struct {
    User     string `form:"user" json:"user" binding:"required"`
    Password string `form:"password" json:"password" binding:"required"`
}

If you send a payload with empty User, the binding will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions