File tree Expand file tree Collapse file tree
samples/config/petstore/protobuf-schema-config/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ additionalProperties:
1010 wrapComplexType : false
1111 supportMultipleResponses : false
1212 aggregateModelsName : data
13+ enumSimpleName : true
1314typeMappings :
1415 object : " google.protobuf.Struct"
1516importMappings :
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments