generated from ipfs/ipfs-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 153
Open
Labels
help wantedSeeking public contribution on this issueSeeking public contribution on this issuekind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)need/analysisNeeds further analysis before proceedingNeeds further analysis before proceeding
Description
When listing pins, Pin.meta is sent as fmt.Sprintf("%v", obj) where obj is map[string]string, e.g., meta=map[foo:one bar:two] (after URL unescaping). That's a bit awkward to parse on the backend. Is there a more idiomatic way to send a map as a query param?
Gin encodes maps by exploding the keys: "meta[foo]=one&meta[bar]=two".
If I generate the client with another popular Go OpenAPI generator called oapi-codegen, it uses this lib to encode Pin.meta as URL escaped JSON.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedSeeking public contribution on this issueSeeking public contribution on this issuekind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)need/analysisNeeds further analysis before proceedingNeeds further analysis before proceeding