Skip to content

Why invalid enumeration value throws during parsing? #514

@tarsh

Description

@tarsh

Hello zserio,

I found a issue when using zserio.
If i define a enum object in V1 as this:
enum {
a,
b,
c,
};

but when in the V2 add new enum value as :
enum {
a,
b,
c,
d,
};

so if the client SDK (generate code by V1) to decode the new version V2 data, will throw a issue to make the application crash.
but as we needed is the all old application should to access the new data version to make the compatibility between of the application and databases.
if there any solution to solve it?

image

Thanks,

Best Regards!

tarsh dong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions