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

Message Codec does not recursively check for header parts #20

Open
tsaubergine opened this issue Dec 27, 2017 · 0 comments
Open

Message Codec does not recursively check for header parts #20

tsaubergine opened this issue Dec 27, 2017 · 0 comments

Comments

@tsaubergine
Copy link
Member

Given this message, Bar:foo::header never gets encoded or decoded by DCCL (since foo in_head = false).

We need to recursively check for child messages with in_head= true.

message Header
{
     required int32 field = 1;
}
message Foo
{
    required Header header = 1 [(dccl.field).in_head = true];    
}


message Bar
{
    option (dccl.msg) = { id: 0x2C05 max_bytes: 32 codec_version: 3 unit_system: "si" };
    required Foo foo = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant