Repository navigation
docs: add user memory API responses - #555
nightcityblade wants to merge 3 commits into
Conversation
|
Warning Review limit reachedNext included review available in 3 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesOpenAPI Response Documentation for IRestUserMemoryStore
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/main/java/ai/labs/eddi/configs/properties/IRestUserMemoryStore.java`:
- Line 54: Add `@APIResponse` annotations to the searchMemories and
getMemoriesByCategory method declarations in the IRestUserMemoryStore interface
to document the additional HTTP response codes that the implementations produce.
Specifically, add `@APIResponse` annotations for HTTP 403 (Forbidden) which
corresponds to when ownershipValidator.validateUserAccess() throws
ForbiddenException, and HTTP 500 (Internal Server Error) which corresponds to
when IResourceStore.ResourceStoreException is caught and wrapped in
InternalServerErrorException. These annotations should be placed above the
method signatures to match the actual implementation behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: c257970d-f5d4-4b21-ae21-7c4c8fe72712
📒 Files selected for processing (1)
src/main/java/ai/labs/eddi/configs/properties/IRestUserMemoryStore.java
Summary
Adds missing OpenAPI
@APIResponseannotations to the user memory REST interface so generated API docs include expected status codes.Type of Change
Related Issue
Closes #548
Changes Made
APIResponseinIRestUserMemoryStore.How to Test
IRestUserMemoryStoreOpenAPI annotations../mvnw compile.Checklist
./mvnw clean verify -DskipITs)Note: I attempted
./mvnw compile, but the first run was still resolving a large dependency tree after several minutes, so I stopped it before completion.Summary by CodeRabbit