Skip to content

Identify message by its ID to correct root model loading #26

@arynyklas

Description

@arynyklas

Describe the change

How can I identify a Message by its ID?

const parsedMessage = new capnp.Message(...);

I want to load specific model by it's ID, using Map<string, capnp.Struct>.
I wasted a several hourst and just checked, that lib doesn't verify ID even after parsedMessage.getRoot(...).
Also, it doesn't verify fields with their types, so for any get-method returns undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions