Skip to content

Commit 785c49f

Browse files
author
andrewwilsonnew
committed
adding test case
1 parent 929e5cb commit 785c49f

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

bin/configs/protobuf-schema-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ additionalProperties:
1010
wrapComplexType: false
1111
supportMultipleResponses: false
1212
aggregateModelsName: data
13+
enumSimpleName: true
1314
typeMappings:
1415
object: "google.protobuf.Struct"
1516
importMappings:

samples/config/petstore/protobuf-schema-config/models/data.proto

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ message Dog {
4545
bool bark = 1;
4646

4747
enum Breed {
48-
BREED_UNSPECIFIED = 0;
49-
BREED_DINGO = 1;
50-
BREED_HUSKY = 2;
51-
BREED_RETRIEVER = 3;
52-
BREED_SHEPHERD = 4;
48+
UNSPECIFIED = 0;
49+
DINGO = 1;
50+
HUSKY = 2;
51+
RETRIEVER = 3;
52+
SHEPHERD = 4;
5353
}
5454

5555
Breed breed = 2;
@@ -78,10 +78,10 @@ message Order {
7878

7979
// Order Status
8080
enum Status {
81-
STATUS_UNSPECIFIED = 0;
82-
STATUS_PLACED = 1;
83-
STATUS_APPROVED = 2;
84-
STATUS_DELIVERED = 3;
81+
UNSPECIFIED = 0;
82+
PLACED = 1;
83+
APPROVED = 2;
84+
DELIVERED = 3;
8585
}
8686

8787
Status status = 5;
@@ -112,10 +112,10 @@ message Pet {
112112

113113
// pet status in the store
114114
enum Status {
115-
STATUS_UNSPECIFIED = 0;
116-
STATUS_AVAILABLE = 1;
117-
STATUS_PENDING = 2;
118-
STATUS_SOLD = 3;
115+
UNSPECIFIED = 0;
116+
AVAILABLE = 1;
117+
PENDING = 2;
118+
SOLD = 3;
119119
}
120120

121121
Status status = 6;

0 commit comments

Comments
 (0)