Open Alioth1017 opened 9 months ago
目前发现 openapi 3.1 协议下,errorMessage字段类型定义会被解析成any
3.0 json片段
"components": { "schemas": { "PageResponseResult": { "type": "object", "properties": { "success": { "type": "boolean", "description": "是否成功" }, "errorMessage": { "type": "string", "description": "错误信息", "nullable": true } } } } }
3.1 json片段
"components": { "schemas": { "PageResponseResult": { "type": "object", "properties": { "success": { "type": "boolean", "description": "是否成功" }, "errorMessage": { "type": ["string", "null"], "description": "错误信息" } } } } }
目前发现 openapi 3.1 协议下,errorMessage字段类型定义会被解析成any
3.0 json片段
3.1 json片段