jhelovuo / RustDDS

Rust implementation of Data Distribution Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested keys seem to be broken

CountryTk opened this issue · comments

I have a structure similar to this:

struct Data {
    objectId: u32 // key1
    collection: Vec<SubData>
}

struct SubData {
    objectId2: u32 // key2
    foo: String
}

If the collection only has one element then it goes through to the other side but if it has more than that, then it doesn't get delivered. I'm pretty sure it's because of the key issue. (Keys in my case are structs but I made them u32 in this example for less boilerplate)

I'm using the latest RustDDS commit.

User error. Turns out the system we are communicating with does not like Serde Optional arguments