Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Better support for ModelAttribute #368

Merged
merged 5 commits into from
Jan 28, 2020
Merged

Better support for ModelAttribute #368

merged 5 commits into from
Jan 28, 2020

Conversation

AnWeber
Copy link
Contributor

@AnWeber AnWeber commented Jan 9, 2020

fix for #355
ModelAttribute is an optional annotation. By default, any argument that is not a simple value type (as determined by BeanUtils#isSimpleProperty) and is not resolved by any other argument resolver is treated as if it were annotated with @ModelAttribute.
This pull request fixes also section header. If operation is annotated with RequestMethod GET, section header is "query parameter".

@fbenz fbenz requested review from jmisur and fbenz January 21, 2020 09:02
Copy link
Contributor

@fbenz fbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution. I'm sorry for the delayed review. The only real question is about the translation keys. Everything else is minor.

Copy link
Contributor

@fbenz fbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for your contribution and for the swift adjustments!

@fbenz fbenz merged commit b9f133c into ScaCap:master Jan 28, 2020
@m-titov
Copy link

m-titov commented Mar 4, 2020

It seems this logic is incorrect. For example, @RequestHeader shouldn't be treated as request parameter

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants