Skip to content

v2.0.0-beta4

Choose a tag to compare

@github-actions github-actions released this 09 Mar 20:47
· 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 @IdFormat annotation is explicitly present

PR

  • feat: configurable default serialization format for Jackson modules by @mariuszs in #20

Full Changelog: v2.0.0-beta3...v2.0.0-beta4