Skip to content

Commit

Permalink
a_bit_of_everything.proto: add 'example' example
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus committed Jan 9, 2019
1 parent e482496 commit 5a48d37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/proto/examplepb/a_bit_of_everything.proto
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ message ABitOfEverything {
url: "https://github.com/grpc-ecosystem/grpc-gateway";
description: "Find out more about ABitOfEverything";
}
example: { value: '{ "uuid": "0cf361e1-4b44-483d-a159-54dabdf7e814" }' }
};

// Nested is nested type.
Expand Down
3 changes: 3 additions & 0 deletions examples/proto/examplepb/a_bit_of_everything.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,9 @@
},
"examplepbABitOfEverything": {
"type": "object",
"example": {
"uuid": "0cf361e1-4b44-483d-a159-54dabdf7e814"
},
"properties": {
"single_nested": {
"$ref": "#/definitions/ABitOfEverythingNested"
Expand Down

0 comments on commit 5a48d37

Please sign in to comment.