Skip to content

Add JsonFormat.Shape awareness for UUID serialization (UUIDSerializer) #2815

@cowtowncoder

Description

@cowtowncoder

(note: fix for FasterXML/jackson-dataformats-binary#218)

Although UUID deserializer can read both String and Binary (if available) representations, it is strictly based on capabilities of the backend (see JsonGenerator.canWriteBinaryNatively()), and there is no easy way to override behavior. This can be problematic in general, but caused issues in particular with Avro format which had formerly claimed it can not write binary natively: issues was fixed for 2.11, but some existing code/models were already counting on String-based representation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions