v2.0.1 - Success Response Refinement & Cleaner Payloads #17
PasinduOG
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are happy to announce the release of API Response v2.0.1! 🎉
This release focuses on optimizing response payloads, improving the separation of concerns, and providing cleaner JSON structures for your successful API calls.
🚀 What's New & Changed?
🧹 Removed Trace ID from Success Responses
To drastically clean up success payloads and reduce JSON size, we have removed the
traceIdfield from standard success responses (ApiResponse).ProblemDetailformat) generated by theGlobalExceptionHandler.TraceIdFilter.✨ Improvements
status,message,content,timestamp).🔄 Migration Guide (v2.0.0 ➡️ v2.0.1)
If your client applications or tests were explicitly asserting the existence of a
traceIdin success responses, you will need to update them.❌ Before (v2.0.0 Success Response):
{ "status": 200, "traceId": "550e8400-e29b-41d4-a716-446655440000", "message": "User found", "content": { ... }, "timestamp": "2026-02-15T10:30:45.123Z" }✅ After (v2.0.1 Success Response):
{ "status": 200, "message": "User found", "content": { ... }, "timestamp": "2026-02-15T10:30:45.123Z" }(Error responses remain unchanged and will still include the
traceId)📦 Installation
Update your dependency to version
2.0.1:Maven
Gradle
implementation 'io.github.pasinduog:api-response:2.0.1'Full Changelog: v2.0.0...v2.0.1
This discussion was created from the release v2.0.1 - Success Response Refinement & Cleaner Payloads.
Beta Was this translation helpful? Give feedback.
All reactions