Skip to content

Serialize theme data with Jackson - #282

Merged
mraible merged 1 commit into
apache:masterfrom
mraible:theme-data-jackson
Nov 15, 2026
Merged

mraible merged 1 commit into
apache:masterfrom
mraible:theme-data-jackson

Conversation

@mraible

@mraible mraible commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Dave's follow-up to #279, from mraible#7. That PR closed when I deleted #279's branch after merging, so this brings his commit over unchanged, with him as its author.

  • ThemeDataServlet builds a small record and lets Jackson write the JSON, instead of printing it by hand.
  • The responses stay the same: one object for ?theme=<id>, an array for the list, and "previewPath": null for a theme whose preview image is missing.
  • ThemeDataServletTest adds a check that quotes and newlines in theme metadata come out as valid JSON. All 4 tests pass on master.

@snoopdave snoopdave left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐝

@mraible
mraible merged commit 6903608 into apache:master Nov 15, 2026
9 checks passed
@mraible
mraible deleted the theme-data-jackson branch November 15, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants