Bind array on request Body


#1

How can i bind/validate a array comming from PUT method?

The payload:

[
    {
        "sku": "998CC",
        "seller_id": "seller_id",
        "price": 55.9,
        "list_price": 1.99
    },
    {
        "sku": "998CC",
        "seller_id": "third_part",
        "price": 55.9,
        "list_price": 1.99
    }
]

if i use c.Bind(&myStruct) i got the error saying that "expect=mystryct got=array`