Skip to content

Conversation

@mkosiorek
Copy link

No description provided.

@who
Copy link
Collaborator

who commented Apr 27, 2017

@mkosiorek Please provide a description for what you're proposing. Also, this needs some unit tests.

@mkosiorek
Copy link
Author

Annotation ApiModelProperty could be applied on methods and fields. Current implementation is limited and elements are excluded only if annotation is applied on method. My code is fixing this problem and now also fields are considered during filtering. In complex models fields might be declared in parent classes that's why fields are listed with FieldUtils.getAllFields.
Current code already contains unit tests (2nd commit).

@who
Copy link
Collaborator

who commented Apr 28, 2017

@mkosiorek Thank you for your contribution - merging now!

@who who merged commit 4d91478 into kongchen:master Apr 28, 2017
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.

2 participants