Skip to content

Commit 611c851

Browse files
authored
Merge pull request #675 from tdakkota/fix/parameter-map
fix: use location of parameter as part of key
2 parents 67688a9 + bb7a4a8 commit 611c851

File tree

63 files changed

+68561
-20087
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+68561
-20087
lines changed

_testdata/positive/parameter_naming.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,35 @@
5555
}
5656
}
5757
}
58+
},
59+
"/same_name/{path}" : {
60+
"get": {
61+
"operationId": "sameName",
62+
"summary": "parameter with different location, but the same name",
63+
"parameters": [
64+
{
65+
"name": "path",
66+
"in": "path",
67+
"required": true,
68+
"schema": {
69+
"type": "string"
70+
}
71+
},
72+
{
73+
"name": "path",
74+
"in": "query",
75+
"required": true,
76+
"schema": {
77+
"type": "string"
78+
}
79+
}
80+
],
81+
"responses": {
82+
"200": {
83+
"description": "User info"
84+
}
85+
}
86+
}
5887
}
5988
}
6089
}

examples/ex_2ch/oas_handlers_gen.go

Lines changed: 104 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)