Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support @JsonIgnoreProperties annotation #3

Closed
zyro23 opened this issue Jan 15, 2017 · 2 comments
Closed

support @JsonIgnoreProperties annotation #3

zyro23 opened this issue Jan 15, 2017 · 2 comments
Labels

Comments

@zyro23
Copy link

zyro23 commented Jan 15, 2017

seems @JsonIgnoreProperties on model classes is currently ignored.

springfox/springfox#113 suggest to use @JsonIgnore instead.

however, in grails, command objects usually implement the Validateable trait that adds a getErrors() method. but you cannot annotate that getter with @JsonIgnore because it is injected by the trait at compile time. my common swaggered grails command object (using swagger-servlet, not springfox) looks like:

@JsonIgnoreProperties("errors")
class MyCommand implements Validateable { ... }
@dilipkrish
Copy link
Member

dilipkrish commented Jan 15, 2017

@zyro23 thanks for reporting issues. This is great feedback!

@dilipkrish
Copy link
Member

@zyro23 addressed via fixing #6

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

No branches or pull requests

2 participants