chore(openapi): test case for model name mapping#2192
Conversation
📝 WalkthroughWalkthroughThe changes introduce and update test cases related to the Changes
Sequence Diagram(s)sequenceDiagram
participant Test
participant OpenAPIPlugin
participant Model
participant OpenAPISpec
Test->>OpenAPIPlugin: Configure with modelNameMapping { User: 'myUser' }
OpenAPIPlugin->>Model: Load models User, Post (with relation)
OpenAPIPlugin->>OpenAPISpec: Generate OpenAPI spec with prefix '/api'
OpenAPISpec-->>Test: Return spec with paths /api/myUser, /api/post
Test->>OpenAPISpec: Validate paths and structure
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (3)📓 Common learningspackages/server/tests/api/rest.test.ts (1)<retrieved_learning> packages/plugins/openapi/tests/openapi-restful.test.ts (1)🔇 Additional comments (3)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
No description provided.