问题描述
是否可以使用 springfox 生成整个架构示例?
我将 spring boot 与 springfox 一起使用,但似乎无法找到生成结果的方法,如 swagger 规范网站上所述。
https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_postrowsingroup
可以为整个模式(包括所有嵌套模式)指定一个示例,前提是该示例符合模式。
deFinition:
CatalogItem:
type: object
properties:
id:
type: integer
name:
type: string
image:
type: object
properties:
url:
type: string
width:
type: integer
height:
type: integer
required:
- id
- name
example: # <----------
id: 38
name: T-shirt
image:
url: images/38.png
width: 100
height: 100
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)