summerfish-swagger icon indicating copy to clipboard operation
summerfish-swagger copied to clipboard

Check for duplicated structs in the same method

Open ambernardino opened this issue 5 years ago • 1 comments

ambernardino avatar Aug 21 '19 17:08 ambernardino

if len(r.URL.Query().Get("timestamp")) > 0 { timestamp, err = strconv.ParseInt(r.URL.Query().Get("timestamp"), 10, 64) }

Results in: [ { "type": "string", "x-go-name": "timestamp", "description": "timestamp", "name": "timestamp", "in": "query", "schema": { "type": "" } }, { "type": "string", "x-go-name": "timestamp", "description": "timestamp", "name": "timestamp", "in": "query", "schema": { "type": "" } } ]

ambernardino avatar Aug 21 '19 17:08 ambernardino