首页 > 解决方案 > How to summarize a object type in swagger?

问题描述

I'm using springfox-swagger2 version 2.9.2 and springfox-swagger-ui version 2.9.2 to documentation a Spring Boot application through Swagger.

The problem is that a Object have many subclasses and make the example object stay very big, showing atributes that not will use in the context.

Someone has idea how can I only show the atributes that I need in the context?

enter image description here

标签: javaspring-bootswaggerswagger-uispringfox

解决方案


推荐阅读