Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Something wrong with repeated in option #37

Open
DoneSpeak opened this issue Jun 27, 2019 · 0 comments
Open

Something wrong with repeated in option #37

DoneSpeak opened this issue Jun 27, 2019 · 0 comments

Comments

@DoneSpeak
Copy link

syntax = "proto2";

option java_multiple_files = true;

import "google/protobuf/descriptor.proto";

package testoption;

extend google.protobuf.FieldOptions {
	optional Fields rules = 1000000;
	optional InValues values = 2000000;
}

message Fields {
	oneof rules {
		InValues values = 1;
	}
}

message InValues {
	repeated int32 in = 1;
	repeated int32 not_in = 2;
}

message TestValues {
	repeated int32 vals = 1 [(testoption.rules).values = {in: [1,2,3]}];
	repeated int32 vals2 = 2 [(testoption.values) = {in: [1,2,3]}];
}

image

I was told that Couldn't resolve reference to IndexedElement 'in' when I created this proto file. But actually, It works as it was expected. So I think that is it a problem of protocol-dt?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant