Skip to content

Commit 270e3aa

Browse files
Update tests
1 parent 5dff5d5 commit 270e3aa

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

cmd/protoc-gen-openapi/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (s *TestSuite) BeforeTest(suite, name string) {
100100
}
101101

102102
out, err := exec.Command("protoc",
103-
"-I=../../proto/technicallyjosh/oapi",
103+
"-I=../../proto",
104104
"-I=../../test",
105105
"--openapi_out=../../test",
106106
"--openapi_opt=version="+s.options.version,

test/field_test.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ syntax = "proto3";
33
package test.api;
44

55
import "google/protobuf/timestamp.proto";
6-
import "v1/field.proto";
7-
import "v1/file.proto";
8-
import "v1/method.proto";
9-
import "v1/service.proto";
6+
import "technicallyjosh/oapi/v1/field.proto";
7+
import "technicallyjosh/oapi/v1/file.proto";
8+
import "technicallyjosh/oapi/v1/method.proto";
9+
import "technicallyjosh/oapi/v1/service.proto";
1010

1111
option go_package = "github.com/technicallyjosh/protoc-gen-openapi/test_api";
1212
option (oapi.v1.file) = {

test/file_test.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22

33
package test.api;
44

5-
import "v1/file.proto";
5+
import "technicallyjosh/oapi/v1/file.proto";
66

77
option go_package = "github.com/technicallyjosh/protoc-gen-openapi/test_api";
88
option (oapi.v1.file) = {

test/method_test.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package test.api;
44

5-
import "v1/file.proto";
6-
import "v1/method.proto";
7-
import "v1/service.proto";
5+
import "technicallyjosh/oapi/v1/file.proto";
6+
import "technicallyjosh/oapi/v1/method.proto";
7+
import "technicallyjosh/oapi/v1/service.proto";
88

99
option go_package = "github.com/technicallyjosh/protoc-gen-openapi/test_api";
1010
option (oapi.v1.file) = {

test/service_test.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ syntax = "proto3";
22

33
package test.api;
44

5-
import "v1/file.proto";
6-
import "v1/method.proto";
7-
import "v1/service.proto";
5+
import "technicallyjosh/oapi/v1/file.proto";
6+
import "technicallyjosh/oapi/v1/method.proto";
7+
import "technicallyjosh/oapi/v1/service.proto";
88

99
option go_package = "github.com/technicallyjosh/protoc-gen-openapi/test_api";
1010
option (oapi.v1.file) = {

0 commit comments

Comments
 (0)