升级文档管理, 支持openapi3, 使用 github.com/getkin/kin-openapi/openapi3 实现 #23
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user