Skip to content

polymorphism and IntKeyMap compatibility. #138

@Rafael-SOWNet

Description

@Rafael-SOWNet

The JSON version has clear example references in README.md. Some nice examples / better documentation / unit tests for my situation would be very helpful. (I know ChatGPT is not because it only knows the old version).
I have issues with polymorphism and CborObjectFormat.IntKeyMap and need a clear example and maybe a working unit test.
I want to have my key/value-pair for the discriminator be both int. e.g.: [0]=123
But when deserializing, it only chooses my base class somehow.
Another issue is that I need UnhandledNameMode.Silent to make it continue.
tbh, I think the whole combination is just broken and I already started trying to register my own IntDiscriminatorConvention without luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions