Skip to content

Add @ModelAttribute support to QueryParameter#2360

Open
snowykte0426 wants to merge 1 commit intospring-projects:mainfrom
snowykte0426:feature/1240-modelattribute-support
Open

Add @ModelAttribute support to QueryParameter#2360
snowykte0426 wants to merge 1 commit intospring-projects:mainfrom
snowykte0426:feature/1240-modelattribute-support

Conversation

@snowykte0426
Copy link

Summary

This PR implements support for Spring MVC's @ModelAttribute annotation in Spring HATEOAS QueryParameter, addressing issue #1240.

Changes Made

  • Extended QueryParameter.of() to handle @ModelAttribute annotations (both explicit and implicit)

- Extended QueryParameter.of() to handle @ModelAttribute annotations
- Added support for explicit and implicit @ModelAttribute parameters
- Implemented RFC6570 explode modifier for composite values
- Updated SpringAffordanceBuilder to include @ModelAttribute parameters
- Added comprehensive tests for new functionality
Supports both simple form style and composite value representations:
- Simple: {?field1,field2,field3}
- Composite with explode: {?myClass*}

Signed-off-by: Kim Tae Eun <snowykte0426@naver.com>
@snowykte0426 snowykte0426 marked this pull request as ready for review September 8, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant