如下是我导入的json片段:
"FunctionStrategyDetailsDtoBaseResponseData": {
"title": "FunctionStrategyDetailsDtoBaseResponseData",
"type": "object",
"properties": {
"code": {
"$ref": "#/components/schemas/CodeStatusEnum"
},
"errorCode": {
"type": "integer",
"format": "int32",
"nullable": true
},
"errorDetail": {
"type": "string",
"nullable": true
},
"message": {
"type": "string",
"nullable": true
},
"toal": {
"type": "integer",
"format": "int32",
"deprecated": true
},
"data": {
"$ref": "#/components/schemas/FunctionStrategyDetailsDto"
}
},
"additionalProperties": false
}
再导出后的json片段就被变为:
"FunctionStrategyDetailsDtoBaseResponseData": {
"title": "FunctionStrategyDetailsDtoBaseResponseData",
"type": "object",
"properties": {
"code": {
"APIPOST_REFS": {
"a4d29495-7004-4db1-a495-6e5d879fd880": {
"ref": "e8013394db90b00f149d835b2763183e"
}
},
"properties": [],
"APIPOST_ORDERS": [
"a4d29495-7004-4db1-a495-6e5d879fd880"
],
"type": "object",
"ref": "e8013394db90b00f149d835b2763183e",
"$ref": "#/components/schemas/CodeStatusEnum"
},
"errorCode": {
"type": "integer",
"format": "int32",
"nullable": true
},
"errorDetail": {
"type": "string",
"nullable": true
},
"message": {
"type": "string",
"nullable": true
},
"toal": {
"type": "integer",
"format": "int32",
"deprecated": true
},
"data": {
"title": "FunctionStrategyDetailsDto",
"type": "object",
"properties": {
"rowStrategies": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
},
"nullable": true
},
"columnStrategies": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"nullable": true
}
},
"additionalProperties": false,
"ref": "5bc027a4906a156702ad71f9200a8b49"
}
},
"additionalProperties": false
}
最根本的是,data属性的引用关系被去除了,没有了正确的"$ref"
收到!我们具体排查一下问题