Skip to content

Commit

Permalink
rebuild all the things
Browse files Browse the repository at this point in the history
Note: I've also run

    find examples -name "*runtime_error*" -delete

before. It seems like those are not captured by any of the *clean make
targets.

Signed-off-by: Stephan Renatus <srenatus@chef.io>
  • Loading branch information
srenatus committed Apr 27, 2020
1 parent 9d2f665 commit d055703
Show file tree
Hide file tree
Showing 22 changed files with 157 additions and 178 deletions.
50 changes: 24 additions & 26 deletions examples/internal/clients/abe/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v1/example/a_bit_of_everything/echo/{value}:
get:
tags:
Expand Down Expand Up @@ -104,7 +104,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
externalDocs:
description: "Find out more Echo"
url: "https://github.com/grpc-ecosystem/grpc-gateway"
Expand Down Expand Up @@ -395,7 +395,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v1/example/a_bit_of_everything/params/get/{single_nested.name}:
get:
tags:
Expand Down Expand Up @@ -690,7 +690,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v1/example/a_bit_of_everything/params/post/{string_value}:
post:
tags:
Expand Down Expand Up @@ -729,7 +729,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v1/example/a_bit_of_everything/query/{uuid}:
get:
tags:
Expand Down Expand Up @@ -1030,7 +1030,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
security: []
externalDocs:
description: "Find out more about GetQuery"
Expand Down Expand Up @@ -1188,7 +1188,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v1/example/a_bit_of_everything/{single_nested.name}:
post:
tags:
Expand Down Expand Up @@ -1228,7 +1228,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v1/example/a_bit_of_everything/{uuid}:
get:
tags:
Expand Down Expand Up @@ -1261,7 +1261,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
put:
tags:
- "ABitOfEverythingService"
Expand Down Expand Up @@ -1298,7 +1298,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
delete:
tags:
- "ABitOfEverythingService"
Expand Down Expand Up @@ -1329,7 +1329,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
security:
- ApiKeyAuth: []
OAuth2:
Expand Down Expand Up @@ -1526,7 +1526,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v2/example/a_bit_of_everything/{abe.uuid}:
put:
tags:
Expand Down Expand Up @@ -1564,7 +1564,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
patch:
tags:
- "ABitOfEverythingService"
Expand Down Expand Up @@ -1601,7 +1601,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v2/example/echo:
get:
tags:
Expand Down Expand Up @@ -1644,7 +1644,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
externalDocs:
description: "Find out more Echo"
url: "https://github.com/grpc-ecosystem/grpc-gateway"
Expand Down Expand Up @@ -1689,7 +1689,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
externalDocs:
description: "Find out more Echo"
url: "https://github.com/grpc-ecosystem/grpc-gateway"
Expand Down Expand Up @@ -1719,7 +1719,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v2/example/errorwithdetails:
get:
tags:
Expand All @@ -1746,7 +1746,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v2/example/overwriteresponsecontenttype:
get:
tags:
Expand Down Expand Up @@ -1776,7 +1776,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v2/example/postwithemptybody/{name}:
post:
tags:
Expand Down Expand Up @@ -1814,7 +1814,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v2/example/timeout:
get:
tags:
Expand All @@ -1841,7 +1841,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v2/example/withbody/{id}:
post:
tags:
Expand Down Expand Up @@ -1879,7 +1879,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
/v2a/example/a_bit_of_everything/{abe.uuid}:
patch:
tags:
Expand Down Expand Up @@ -1917,7 +1917,7 @@ paths:
default:
description: "An unexpected error response"
schema:
$ref: "#/definitions/runtimeError"
$ref: "#/definitions/rpcStatus"
securityDefinitions:
ApiKeyAuth:
type: "apiKey"
Expand Down Expand Up @@ -2369,11 +2369,9 @@ definitions:
\ API method which has a FieldMask type field in the\nrequest should verify\
\ the included field paths, and return an\n`INVALID_ARGUMENT` error if any path\
\ is duplicated or unmappable."
runtimeError:
rpcStatus:
type: "object"
properties:
error:
type: "string"
code:
type: "integer"
format: "int32"
Expand Down
38 changes: 19 additions & 19 deletions examples/internal/clients/abe/api_a_bit_of_everything_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceCheckGetQuery
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -625,7 +625,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceCheckNestedEn
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -773,7 +773,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceCheckPostQuer
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -955,7 +955,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceCreate(ctx co
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -1101,7 +1101,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceCreateBody(ct
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -1249,7 +1249,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceDeepPathEcho(
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -1394,7 +1394,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceDelete(ctx co
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -1537,7 +1537,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceErrorWithDeta
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -1685,7 +1685,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceGetMessageWit
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -1984,7 +1984,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceGetQuery(ctx
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -2207,7 +2207,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceGetRepeatedQu
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -2352,7 +2352,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceLookup(ctx co
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -2495,7 +2495,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceOverwriteResp
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -2643,7 +2643,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServicePostWithEmpty
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -2786,7 +2786,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceTimeout(ctx c
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -2934,7 +2934,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceUpdate(ctx co
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -3082,7 +3082,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceUpdateV2(ctx
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -3230,7 +3230,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceUpdateV22(ctx
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down Expand Up @@ -3378,7 +3378,7 @@ func (a *ABitOfEverythingServiceApiService) ABitOfEverythingServiceUpdateV23(ctx
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (a *CamelCaseServiceNameApiService) CamelCaseServiceNameEmpty(ctx context.C
}

if localVarHttpResponse.StatusCode == 0 {
var v RuntimeError
var v RpcStatus
err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
if err != nil {
newErr.error = err.Error()
Expand Down
Loading

0 comments on commit d055703

Please sign in to comment.