-
Notifications
You must be signed in to change notification settings - Fork 128
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
[Request] Ignore certain fields on @ApiObject classes #153
Comments
yeah, have the same issue here, using grails with the jsonDoc. |
+1 for showing only the annotated fields. |
+1 for ignore annotation Since the Alternatively a more generic annotation (e.g. @ApiIgnore) could be added to also support skipping of API methods.
|
+1 for @ApiObjectIgnoreField |
+1 |
I'm using Groovy for several of my ApiObject classes. Here is an example:
Behind the scenes, Groovy adds a handful of properties to the class to support its "magic." Unfortunately, the class is then rendered in the UI like so:
I'd love to have those default Groovy properties like $callSiteArray and metaClass ignored in the JSON example.
The request is to be able to ignore some fields by default. The first thing that comes to mind is to add a new property to the configuration. Example:
jsondoc.apiObjectFields.ignore=$callSiteArray,$staticClassInfo....etc
Then ignore those fields on either the JSON output, the model creation, or possibly within the org.reflections code (I'm not sure if there is support for that functionality).
Thoughts? I'd be happy to do the work, but I wanted to get your input first.
The text was updated successfully, but these errors were encountered: