Open alexpeelman opened 7 years ago
I met you, too
If you are using SpringFox, a work-around is:
import springfox.documentation.spring.web.plugins.Docket;
...
docket.ignoredParameterTypes(ErsEntity.class);
Credit: https://github.com/springfox/springfox/issues/1139#issuecomment-171005465
@ApiIgnore It'll get you where you want it。
I use Spring MVCs ModelAttribute to map query parameters to an object encapsulating the fields.
But the TargetRequest class contains a field with an object as type, which is never used in the parameter mappings and may be ignored
Swagger introspects the object and for each primitive property in the top-down hierarchy, query parameter documentation is generated. I explicitly annotated the field to be hidden but no luck.