Skip to content

Commit f87b14b

Browse files
committed
re-run test
1 parent 53be847 commit f87b14b

8 files changed

Lines changed: 22 additions & 51 deletions

File tree

modules/openapi-generator/src/main/resources/protobuf-schema/model.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ import public "{{{.}}}.proto";
5050
}
5151
{{/isEnum}}
5252
{{/model}}
53+
5354
{{/models}}

samples/config/petstore/protobuf-schema-config/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# gPRC for openapitools
1+
# gPRC for petstore
22

33
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
44

@@ -17,15 +17,15 @@ Below are some usage examples for Go and Ruby. For other languages, please refer
1717
### Go
1818
```
1919
# assuming `protoc-gen-go` has been installed with `go get -u github.com/golang/protobuf/protoc-gen-go`
20-
mkdir /var/tmp/go/openapitools
21-
protoc --go_out=/var/tmp/go/openapitools services/*
22-
protoc --go_out=/var/tmp/go/openapitools models/*
20+
mkdir /var/tmp/go/petstore
21+
protoc --go_out=/var/tmp/go/petstore services/*
22+
protoc --go_out=/var/tmp/go/petstore models/*
2323
```
2424

2525
### Ruby
2626
```
2727
# assuming `grpc_tools_ruby_protoc` has been installed via `gem install grpc-tools`
28-
RUBY_OUTPUT_DIR="/var/tmp/ruby/openapitools"
28+
RUBY_OUTPUT_DIR="/var/tmp/ruby/petstore"
2929
mkdir $RUBY_OUTPUT_DIR
3030
grpc_tools_ruby_protoc --ruby_out=$RUBY_OUTPUT_DIR --grpc_out=$RUBY_OUTPUT_DIR/lib services/*
3131
grpc_tools_ruby_protoc --ruby_out=$RUBY_OUTPUT_DIR --grpc_out=$RUBY_OUTPUT_DIR/lib models/*

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
syntax = "proto3";
1212

13-
package openapitools;
13+
package petstore;
1414

1515
import public "google/protobuf/struct.proto";
1616

@@ -23,20 +23,23 @@ message ApiResponse {
2323
string message = 3;
2424

2525
}
26+
2627
message Cat {
2728

2829
bool hunts = 1;
2930

3031
int32 age = 2;
3132

3233
}
34+
3335
message Category {
3436

3537
int64 id = 1;
3638

3739
string name = 2;
3840

3941
}
42+
4043
message Dog {
4144

4245
bool bark = 1;
@@ -52,6 +55,7 @@ message Dog {
5255
Breed breed = 2;
5356

5457
}
58+
5559
message Order {
5660

5761
int64 id = 1;
@@ -77,11 +81,13 @@ message Order {
7781
google.protobuf.Struct meta = 7;
7882

7983
}
84+
8085
message OtherTest {
8186

8287
repeated string set_test = 1;
8388

8489
}
90+
8591
message Pet {
8692

8793
int64 id = 1;
@@ -105,27 +111,31 @@ message Pet {
105111
Status status = 6;
106112

107113
}
114+
108115
message PetsGetRequest {
109116

110117
oneof pets_get_request {
111118
Cat cat = 1;
112119
Dog dog = 2;
113120
}
114121
}
122+
115123
message PetsPostRequest {
116124

117125
Cat cat = 1;
118126

119127
Dog dog = 2;
120128

121129
}
130+
122131
message Tag {
123132

124133
int64 id = 1;
125134

126135
string name = 2;
127136

128137
}
138+
129139
message User {
130140

131141
int64 id = 1;
@@ -146,3 +156,4 @@ message User {
146156
int32 user_status = 8 [json_name="userStatus"];
147157

148158
}
159+

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

Lines changed: 0 additions & 41 deletions
This file was deleted.

samples/config/petstore/protobuf-schema-config/services/default_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
syntax = "proto3";
1212

13-
package openapitools.services.defaultservice;
13+
package petstore.services.defaultservice;
1414

1515
import "google/protobuf/empty.proto";
1616
import public "models/data.proto";

samples/config/petstore/protobuf-schema-config/services/pet_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
syntax = "proto3";
1212

13-
package openapitools.services.petservice;
13+
package petstore.services.petservice;
1414

1515
import "google/protobuf/empty.proto";
1616
import public "models/data.proto";

samples/config/petstore/protobuf-schema-config/services/store_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
syntax = "proto3";
1212

13-
package openapitools.services.storeservice;
13+
package petstore.services.storeservice;
1414

1515
import "google/protobuf/empty.proto";
1616
import public "models/data.proto";

samples/config/petstore/protobuf-schema-config/services/user_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
syntax = "proto3";
1212

13-
package openapitools.services.userservice;
13+
package petstore.services.userservice;
1414

1515
import "google/protobuf/empty.proto";
1616
import public "models/data.proto";

0 commit comments

Comments
 (0)