mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 08:27:04 +00:00
Two follow-up cleanups from the audit. Base64Image.parse: when the regex matched but the data capture group was missing, the migrated version returned an empty ByteArray. The original threw NPE (java.util.Base64.getDecoder().decode(null)). Both behaviors are accidents — restore the intended contract: throw the existing "Unable to convert base64 to image" Exception explicitly. FeedDefinitionSerializerTest gains a serializesToExpectedWireFormat test that pins the byte-exact JSON output for a representative multi-field feed. The legacy-Jackson migration claimed byte-identity but only round-trip and reverse-compat were covered. Any future change to field ordering / null handling / number formatting now fails this test loudly, protecting users who have saved feeds on disk and any downstream consumer expecting the stable order.