Skip to content

Commit

Permalink
return payload on bad request
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Apr 25, 2022
1 parent a5a4a31 commit 32d44e4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
11 changes: 10 additions & 1 deletion client/transactions/create_transaction_responses.go

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

6 changes: 3 additions & 3 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
)

func main() {
basicAuth := httptransport.BasicAuth("username", "password")
r := httptransport.New("rest.avatax.com", "/api/v2", client.DefaultSchemes)
basicAuth := httptransport.BasicAuth("sys-int@humann.com", "Bp#NTVVt2!P^mi24")
r := httptransport.New("rest.avatax.com", "", client.DefaultSchemes)
r.DefaultAuthentication = basicAuth
r.Producers["application/*+json"] = runtime.JSONProducer()
c := client.New(r, strfmt.Default)
Expand All @@ -23,7 +23,7 @@ func main() {
defer cancel()

res, err := c.Transactions.GetTransactionByID(&transactions.GetTransactionByIDParams{
ID: 1000,
ID: 71000021743363,
Context: ctx,
}, nil)

Expand Down
5 changes: 4 additions & 1 deletion swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -23990,7 +23990,10 @@
}
},
"400": {
"description": "Bad Request"
"description": "Bad Request",
"schema": {
"type": "string"
}
},
"401": {
"description": "Unauthorized"
Expand Down

0 comments on commit 32d44e4

Please sign in to comment.