fix: 🐛 Prioritize explicit parameter annotations over MediaType detection - #6
Conversation
|
🔍 Before proceeding, please review the contribution guidelines This includes requirements for:
Thanks for your PR. 🙏 In addition, if you have added new features, please provide example code in the repository smart-doc-group/smart-doc-example-cn. This will help other users understand how to use the new features. Code Style Reminder: 🔍 提交前请务必完成以下检查 需特别注意:
感谢您提交的PR。 🙏 另外,如果您添加了新功能,请在仓库smart-doc-group/smart-doc-example-cn中提供示例代码。这将帮助其他用户了解如何使用新功能。 代码风格提示: |
af088c7 to
3f98e6c
Compare
…tion - Ensure @PathVariable, @RequestParam, @RequestPart, and @RequestBody annotations take precedence over automatic body parameter detection based on MediaType - Fix issue where parameters with explicit annotations were incorrectly treated as body parameters when method has JSON/form media type - Maintain backward compatibility for parameters without explicit annotations - Resolves incorrect parameter type detection in multipart/form-data endpoints where @PathVariable and @RequestParam should maintain their designated types Fixes: smart-doc-group#5
3f98e6c to
7b17f60
Compare
@PathVariable,@RequestParam,@RequestPart, and@RequestBodyannotations take precedence over automatic body parameter detection based on MediaType@PathVariableand@RequestParamshould maintain their designated typesFixes: #5