修复基础数据类型的数组处理

This commit is contained in:
2025-02-18 11:48:39 +08:00
parent f0f15a4df3
commit 848adb5b29
3 changed files with 34 additions and 13 deletions

View File

@ -162,7 +162,9 @@ type Property struct {
//
// Date : 17:13 2024/7/19
type PropertyXOf struct {
Ref string `json:"$ref"` // 引用的结构描述
Type string `json:"type,omitempty"` // 基础类型
Format string `json:"format,omitempty"` // 真实类型
Ref string `json:"$ref,omitempty"` // 引用的结构描述
}
// SchemaDiscriminator 当一个 request bodies 或 response payloads 可以是多种 schemas 时,可以使用一个 discriminator 对象来帮助序列化、反序列化和校验