Skip to content

Commit

Permalink
fix: Add missing consumes
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed Sep 28, 2020
1 parent 7b72b23 commit 0d48958
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/customer_token/customer_token_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/cmd/convert-swagger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func main() {
}

api.Paths.Paths["/api/v1/connect/token"].Post.Parameters = parameters
api.Paths.Paths["/api/v1/connect/token"].Post.Consumes = []string{"application/x-www-form-urlencoded"}

for i, h := range api.Paths.Paths {
fixMethod(i, h.Delete)
Expand Down
3 changes: 3 additions & 0 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6087,6 +6087,9 @@
},
"/api/v1/connect/token": {
"post": {
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"text/plain",
"application/json",
Expand Down

0 comments on commit 0d48958

Please sign in to comment.