5c344bfceb
proto.Clone couldn't makes copy for custom fields. We should reset and restore MetaHeader before/after Sign/Verify. Add test coverage to check that all works like expected.
18 lines
704 B
Protocol Buffer
18 lines
704 B
Protocol Buffer
syntax = "proto3";
|
|
package service;
|
|
option go_package = "github.com/nspcc-dev/neofs-proto/service";
|
|
|
|
import "service/meta.proto";
|
|
import "service/verify.proto";
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
|
|
option (gogoproto.stable_marshaler_all) = true;
|
|
|
|
message TestRequest {
|
|
int32 IntField = 1;
|
|
string StringField = 2;
|
|
bytes BytesField = 3;
|
|
bytes CustomField = 4 [(gogoproto.customtype) = "testCustomField"];
|
|
RequestMetaHeader Meta = 98 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
|
RequestVerificationHeader Header = 99 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
|
}
|