Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(+semver: fix) Fix recursive message type handling #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/testing/proto/gen/generated.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
syntax = "proto3";
package gen;
option go_package = "github.com/syncromatics/proto-schema-registry/internal/test/testProto/gen";

message google_protobuf_StringValue {
string value = 1;
}
Expand Down
1 change: 1 addition & 0 deletions docs/testing/proto/v1/enums.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";

package v1;
option go_package = "github.com/syncromatics/proto-schema-registry/internal/test/testProto/v1";

enum Enum1 {
ZERO = 0;
Expand Down
15 changes: 15 additions & 0 deletions docs/testing/proto/v1/recursive.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax = "proto3";

package v1;
option go_package = "github.com/syncromatics/proto-schema-registry/internal/test/testProto/v1";

message AnyValue {
oneof value {
ArrayValue array_value = 1;
string string_value = 2;
}
}

message ArrayValue {
repeated AnyValue values = 1;
}
1 change: 1 addition & 0 deletions docs/testing/proto/v1/testObject.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package v1;

import "google/protobuf/wrappers.proto";
option go_package = "github.com/syncromatics/proto-schema-registry/internal/test/testProto/v1";

message TestObject {
int64 id = 1;
Expand Down
1 change: 1 addition & 0 deletions docs/testing/proto/v1/testObject2.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";

package v1;
option go_package = "github.com/syncromatics/proto-schema-registry/internal/test/testProto/v1";

import "google/protobuf/wrappers.proto";
import "v1/testObject.proto";
Expand Down
1 change: 1 addition & 0 deletions docs/testing/proto/v1/testObject3.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";

package v1;
option go_package = "github.com/syncromatics/proto-schema-registry/internal/test/testProto/v1";

import "v1/testObject.proto";
import "v1/testObject2.proto";
Expand Down
2 changes: 1 addition & 1 deletion docs/testing/proto/v1/testObjects.proto
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
syntax = "proto3";

package v1;
option go_package = "github.com/syncromatics/proto-schema-registry/internal/test/testProto/v1";

import "v1/testObject.proto";
import "v1/testObject2.proto";
import "v1/testObject3.proto";
import "v1/enums.proto";

option go_package = "v1";

message TestObjects {
TestObject object = 1;
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ require (
golang.org/x/text v0.3.2 // indirect
google.golang.org/genproto v0.0.0-20200413115906-b5235f65be36 // indirect
google.golang.org/grpc v1.28.1
google.golang.org/protobuf v1.21.0 // indirect
gotest.tools v2.2.0+incompatible
)

Expand Down
Loading