We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
# spec PriorityFilter: name: priority in: query schema: type: object additionalProperties: type: integer
// models // PriorityFilter defines model for PriorityFilter. type PriorityFilter map[string]int // GetMessagesParams defines parameters for GetMessages. type GetMessagesParams struct { Priority *PriorityFilter `form:"priority,omitempty" json:"priority,omitempty"` }
// using client pf := PriorityFilter(map[string]int{"gt": 100}) _, err := client.GetMessages(ctx, &GetMessagesParams{ Priority: &pf, }) if err != nil { t.Fatalf("get messages: %s", err) } // fails with error: get messages: map not of type map[string]interface{}
It fails on call if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { return nil, err }
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { return nil, err }
The text was updated successfully, but these errors were encountered:
Same problem, but with type: string: map not of type map[string]interface{}
type: string
map not of type map[string]interface{}
Sorry, something went wrong.
d741dd7
Merge pull request #38 from andnow873/#37
9fd2a77
fix #37
No branches or pull requests
It fails on call
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { return nil, err }
The text was updated successfully, but these errors were encountered: