Document the error field on listed posts (public API) - #243
Conversation
The Post schema for GET /posts gains an error property: the curated platform error message for posts in the ERROR state (same message as the calendar tooltip), null otherwise. Backend change ships with gitroomhq/postiz-app#1868. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XvHgEEangtx46CmTGCrnL1
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe public OpenAPI ChangesPost error response contract
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This localized change documents the nullable error field returned by the public posts API. No actionable merge-blocking risk remains beyond normal review and the stated backend deployment sequencing. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This documents a field the API only returns once that PR's backend change is live.
Adds an error property (string, nullable) to the Post schema used by GET /posts in the public API OpenAPI spec. For posts in the ERROR state it holds the error message reported by the platform when it rejected the post (the same message shown in the calendar tooltip), and null when the post did not fail or no curated platform message is available.
Tested locally with mintlify dev: the List Posts page renders the new posts.error field and the response example correctly, with no layout overflow (long example message wraps in the field docs and scrolls within the code block).
🤖 Generated with Claude Code
https://claude.ai/code/session_01XvHgEEangtx46CmTGCrnL1
Summary by CodeRabbit