升级文档管理, 支持openapi3, 使用 github.com/getkin/kin-openapi/openapi3 实现 #23

Merged
zhangdeman merged 26 commits from feature/upgrade_api_doc_generate into master 2026-01-06 23:26:37 +08:00
Showing only changes of commit 20b6c48640 - Show all commits

View File

@@ -208,7 +208,7 @@ func generateSchemaRecursive(t reflect.Type, seen map[string]bool) *openapi3.Sch
return nil return nil
} }
return &openapi3.SchemaRef{ return &openapi3.SchemaRef{
Value: openapi3.NewArraySchema().WithItems(elemSchema), Value: openapi3.NewArraySchema().WithItems(elemSchema.Value),
} }
case reflect.Map: case reflect.Map: