-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* a bunch of whitespace/format changes... have since added this to my IDE * remove any.Any objects, and convert them to string * move runtime regex strings to global variables * update examples * update tests
- Loading branch information
1 parent
cfa0455
commit dfa5c22
Showing
29 changed files
with
904 additions
and
872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/internal/clients/generateunboundmethods/.swagger-codegen/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.20 | ||
2.4.8 |
217 changes: 101 additions & 116 deletions
217
examples/internal/clients/generateunboundmethods/api/swagger.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,136 +1,121 @@ | ||
openapi: 3.0.1 | ||
--- | ||
swagger: "2.0" | ||
info: | ||
title: examples/internal/proto/examplepb/generate_unbound_methods.proto | ||
description: |- | ||
Generate Unannotated Methods Echo Service | ||
Similar to echo_service.proto but without annotations and without external configuration. | ||
Generate Unannotated Methods Echo Service API consists of a single service which returns | ||
a message. | ||
version: version not set | ||
servers: | ||
- url: / | ||
description: "Generate Unannotated Methods Echo Service\nSimilar to echo_service.proto\ | ||
\ but without annotations and without external configuration.\n\nGenerate Unannotated\ | ||
\ Methods Echo Service API consists of a single service which returns\na message." | ||
version: "version not set" | ||
title: "examples/internal/proto/examplepb/generate_unbound_methods.proto" | ||
consumes: | ||
- "application/json" | ||
produces: | ||
- "application/json" | ||
paths: | ||
/grpc.gateway.examples.internal.examplepb.GenerateUnboundMethodsEchoService/Echo: | ||
post: | ||
tags: | ||
- GenerateUnboundMethodsEchoService | ||
summary: Echo method receives a simple message and returns it. | ||
description: |- | ||
The message posted as the id parameter will also be | ||
returned. | ||
operationId: GenerateUnboundMethodsEchoService_Echo | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/examplepbGenerateUnboundMethodsSimpleMessage' | ||
- "GenerateUnboundMethodsEchoService" | ||
summary: "Echo method receives a simple message and returns it." | ||
description: "The message posted as the id parameter will also be\nreturned." | ||
operationId: "GenerateUnboundMethodsEchoService_Echo" | ||
parameters: | ||
- in: "body" | ||
name: "body" | ||
required: true | ||
schema: | ||
$ref: "#/definitions/examplepbGenerateUnboundMethodsSimpleMessage" | ||
x-exportParamName: "Body" | ||
responses: | ||
"200": | ||
description: A successful response. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/examplepbGenerateUnboundMethodsSimpleMessage' | ||
200: | ||
description: "A successful response." | ||
schema: | ||
$ref: "#/definitions/examplepbGenerateUnboundMethodsSimpleMessage" | ||
default: | ||
description: An unexpected error response. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/runtimeError' | ||
x-codegen-request-body-name: body | ||
description: "An unexpected error response." | ||
schema: | ||
$ref: "#/definitions/runtimeError" | ||
/grpc.gateway.examples.internal.examplepb.GenerateUnboundMethodsEchoService/EchoBody: | ||
post: | ||
tags: | ||
- GenerateUnboundMethodsEchoService | ||
summary: EchoBody method receives a simple message and returns it. | ||
operationId: GenerateUnboundMethodsEchoService_EchoBody | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/examplepbGenerateUnboundMethodsSimpleMessage' | ||
- "GenerateUnboundMethodsEchoService" | ||
summary: "EchoBody method receives a simple message and returns it." | ||
operationId: "GenerateUnboundMethodsEchoService_EchoBody" | ||
parameters: | ||
- in: "body" | ||
name: "body" | ||
required: true | ||
schema: | ||
$ref: "#/definitions/examplepbGenerateUnboundMethodsSimpleMessage" | ||
x-exportParamName: "Body" | ||
responses: | ||
"200": | ||
description: A successful response. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/examplepbGenerateUnboundMethodsSimpleMessage' | ||
200: | ||
description: "A successful response." | ||
schema: | ||
$ref: "#/definitions/examplepbGenerateUnboundMethodsSimpleMessage" | ||
default: | ||
description: An unexpected error response. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/runtimeError' | ||
x-codegen-request-body-name: body | ||
description: "An unexpected error response." | ||
schema: | ||
$ref: "#/definitions/runtimeError" | ||
/grpc.gateway.examples.internal.examplepb.GenerateUnboundMethodsEchoService/EchoDelete: | ||
post: | ||
tags: | ||
- GenerateUnboundMethodsEchoService | ||
summary: EchoDelete method receives a simple message and returns it. | ||
operationId: GenerateUnboundMethodsEchoService_EchoDelete | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/examplepbGenerateUnboundMethodsSimpleMessage' | ||
- "GenerateUnboundMethodsEchoService" | ||
summary: "EchoDelete method receives a simple message and returns it." | ||
operationId: "GenerateUnboundMethodsEchoService_EchoDelete" | ||
parameters: | ||
- in: "body" | ||
name: "body" | ||
required: true | ||
schema: | ||
$ref: "#/definitions/examplepbGenerateUnboundMethodsSimpleMessage" | ||
x-exportParamName: "Body" | ||
responses: | ||
"200": | ||
description: A successful response. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/examplepbGenerateUnboundMethodsSimpleMessage' | ||
200: | ||
description: "A successful response." | ||
schema: | ||
$ref: "#/definitions/examplepbGenerateUnboundMethodsSimpleMessage" | ||
default: | ||
description: An unexpected error response. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/runtimeError' | ||
x-codegen-request-body-name: body | ||
components: | ||
schemas: | ||
examplepbGenerateUnboundMethodsSimpleMessage: | ||
type: object | ||
properties: | ||
id: | ||
type: string | ||
description: Id represents the message identifier. | ||
num: | ||
type: string | ||
format: int64 | ||
duration: | ||
type: string | ||
description: GenerateUnboundMethodsSimpleMessage represents a simple message | ||
sent to the unannotated GenerateUnboundMethodsEchoService service. | ||
example: | ||
duration: duration | ||
num: num | ||
id: id | ||
protobufAny: | ||
type: object | ||
properties: | ||
type_url: | ||
type: string | ||
value: | ||
pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ | ||
type: string | ||
format: byte | ||
runtimeError: | ||
type: object | ||
properties: | ||
error: | ||
type: string | ||
code: | ||
type: integer | ||
format: int32 | ||
message: | ||
type: string | ||
details: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/protobufAny' | ||
description: "An unexpected error response." | ||
schema: | ||
$ref: "#/definitions/runtimeError" | ||
definitions: | ||
examplepbGenerateUnboundMethodsSimpleMessage: | ||
type: "object" | ||
properties: | ||
id: | ||
type: "string" | ||
description: "Id represents the message identifier." | ||
num: | ||
type: "string" | ||
format: "int64" | ||
duration: | ||
type: "string" | ||
description: "GenerateUnboundMethodsSimpleMessage represents a simple message\ | ||
\ sent to the unannotated GenerateUnboundMethodsEchoService service." | ||
example: | ||
duration: "duration" | ||
num: "num" | ||
id: "id" | ||
protobufAny: | ||
type: "object" | ||
properties: | ||
type_url: | ||
type: "string" | ||
value: | ||
type: "string" | ||
format: "byte" | ||
pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" | ||
runtimeError: | ||
type: "object" | ||
properties: | ||
error: | ||
type: "string" | ||
code: | ||
type: "integer" | ||
format: "int32" | ||
message: | ||
type: "string" | ||
details: | ||
type: "array" | ||
items: | ||
$ref: "#/definitions/protobufAny" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.