java - 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?
解决方案
推荐阅读
- pointers - 如何在 Go 中使用 Win32 的 GetRawInputDeviceList?
- javascript - R中的父/子行
- amazon-web-services - S3Client 和 Quarkus Native App Issueu with Runn
- django - Django Rest Framework 序列化程序验证一个的通过,但在另一个上失败
- asp.net-mvc - 在 Task.Run 中调用异步方法
- excel - 如何在 EXCEL 中的活动行中选择一列以使用 VBA 粘贴到单独的工作表上?
- sqlite - 在调试 Xamarin Forms 应用程序时检查 SQLLite 数据库内容
- java - maven testng 项目 - 更改 testng.xml 后,当我从终端执行时它没有改变
- angular - 顺序订阅多个服务调用
- python - opencv:如何在单个深度图像中找到轮廓?