Skip to content

Commit

Permalink
update protobuf samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Jul 30, 2020
1 parent 0494d27 commit 6621f46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion samples/config/petstore/protobuf-schema/models/order.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ message Order {
string shipDate = 4;

// Order Status
enum status {
enum StatusEnum {
PLACED = 0;
APPROVED = 1;
DELIVERED = 2;
}

StatusEnum status = 5;

bool complete = 6;

}
4 changes: 3 additions & 1 deletion samples/config/petstore/protobuf-schema/models/pet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ message Pet {
repeated Tag tags = 5;

// pet status in the store
enum status {
enum StatusEnum {
AVAILABLE = 0;
PENDING = 1;
SOLD = 2;
}

StatusEnum status = 6;

}

0 comments on commit 6621f46

Please sign in to comment.