v2.0.0-beta4
·
3 commits
to master
since this release
What's Changed
Configurable default serialization format
Both Jackson modules now support choosing the default UUID serialization format at module level:
// Jackson 3.x — serialize UUIDs as standard format by default
new FriendlyIdModule(FriendlyIdFormat.RAW)
// Jackson 2.x
new FriendlyIdJackson2Module(FriendlyIdFormat.RAW)When using RAW, UUIDs are serialized in standard format (f088ce5b-9279-...) while deserialization still accepts both standard UUIDs and Base62 FriendlyIds. Per-field format can be overridden with @IdFormat annotation.
Default behavior (Base62) is unchanged — no breaking changes.
Bug fix
- Fixed
FriendlyIdAnnotationIntrospector(Jackson 2.x) overriding module-level default format — the introspector now only intervenes when@IdFormatannotation is explicitly present
PR
Full Changelog: v2.0.0-beta3...v2.0.0-beta4