[CSM Portal][BE] Use Key/Keys suffix for enum fields in request schemas - #914
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughRenames JSON payload field keys across the OpenAPI spec, Go handler struct tags, and test fixtures: ChangesJSON Field Key Renaming
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies" 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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
Key/Keyssuffix to align with entity-service conventions:CaseCreatePayload:priority→priorityKey,issueType→issueTypeKeyUpdateCaseRequest:state→stateKey,priority→priorityKey,workState→workStateKeyCaseCommentCreatePayload:commentType→typeKey,body→contentPatchCasehandler to readstateKey/workStateKeyfrom request body for state transition validationCreateCaseCommenthandler to readtypeKeyfor work-note exemption checkCaseCommentresponse schema to match entity-service shape (type,content,createdOn)Summary by CodeRabbit
Release Notes
Chores
stateKey,priorityKey,workStateKey, andissueTypeKey. Comment operations usetypeKeyfor type andcontentfor the message body. These changes standardize request and response contracts across case management endpoints. Review the updated API documentation.