修复对象嵌套的BUG

This commit is contained in:
2024-04-23 14:43:23 +08:00
parent ee48b651a8
commit 4ef4e5ae3b
3 changed files with 42 additions and 5 deletions

View File

@ -97,8 +97,10 @@ type SwaggerDefinition struct {
//
// Date : 17:25 2024/4/19
type SwaggerDefinitionProperty struct {
Description string `json:"description"` // 描述
Type string `json:"type"` // 类型
Description string `json:"description"` // 描述
Type string `json:"type"` // 类型
Items map[string]string `json:"items,omitempty"` // 引用类型中的引用(数组)
AllOf []map[string]string `json:"allOf,omitempty"` // 引用类型中的引用(对象)
}
// Swagger 文档整体结构定义