mirror of
https://github.com/go-home-admin/toolset.git
synced 2025-12-24 13:37:52 +08:00
fix: 修复swagger文档部分参数没有说明问题
This commit is contained in:
@@ -401,7 +401,8 @@ func messageToSchemas(pge string, message parser.Message, swagger *openapi.Spec)
|
||||
if isProtoBaseType(option.Ty) {
|
||||
// 基础类型的数组
|
||||
attr := &openapi.Schema{
|
||||
Type: "array",
|
||||
Type: "array",
|
||||
Description: doc,
|
||||
Items: &openapi.Schema{
|
||||
Description: doc,
|
||||
Type: getProtoToSwagger(option.Ty),
|
||||
@@ -421,7 +422,8 @@ func messageToSchemas(pge string, message parser.Message, swagger *openapi.Spec)
|
||||
} else {
|
||||
// 引用其他对象
|
||||
attr := &openapi.Schema{
|
||||
Type: "array",
|
||||
Type: "array",
|
||||
Description: doc,
|
||||
Items: &openapi.Schema{
|
||||
Ref: getRef(pge, option.Ty),
|
||||
Description: doc,
|
||||
|
||||
Reference in New Issue
Block a user