使用Json Schema数据没有查询不能调用JSON 可视化编辑器
Json Schema格式如下,解析是正常的,如图:{"definitions":{"CheckOutReportDetail":{"type":"object","properties":{"Id":{"type":"integer"},"DetailName":{"type":"string"},"DetailUnit":{"type":"string"},"DetailPrice":{"type":"number"},"DetailNum":{"type":"number"},"DetailTotalPrice":{"type":"number"},"DetailMxType":{"type":"integer"},"DetailIsExtend":{"type":"string"},"DetailDiscount":{"type":"string"},"DetailGive":{"type":"string"},"PackageDetails":{"type":"array","items":{"$ref":"#/definitions/CheckOutReportPackageDetail"}},"DetailRecords":{"type":"array","items":{"$ref":"#/definitions/CheckOutReportDetailRecord"}}},"required":["Id","DetailName","DetailUnit","DetailPrice","DetailNum","DetailTotalPrice","DetailMxType","DetailIsExtend","DetailDiscount","DetailGive","PackageDetails","DetailRecords"]},"CheckOutReportDetailRecord":{"type":"object","properties":{"DetailRecordName":{"type":"string"},"DetailRecordNum":{"type":"number"}},"required":["DetailRecordName","DetailRecordNum"]},"CheckOutReportPackageDetail":{"type":"object","properties":{"OrderDetailId":{"type":"integer"},"PackageDetailName":{"type":"string"},"PackageDetailNum":{"type":"number"}},"required":["OrderDetailId","PackageDetailName","PackageDetailNum"]},"CheckOutReportPay":{"type":"object","properties":{"PayName":{"type":"string"},"PayNum":{"type":"number"},"PayTotalPrice":{"type":"number"}},"required":["PayName","PayNum","PayTotalPrice"]}},"type":"object","properties":{"RestaurantName":{"type":"string"},"OrderNo":{"type":"string"},"Person":{"type":"integer"},"Details":{"type":"array","items":{"$ref":"#/definitions/CheckOutReportDetail"}},"Pays":{"type":"array","items":{"$ref":"#/definitions/CheckOutReportPay"}},"PayRemark":{"type":"string"},"OpenData":{"type":"string"},"OpenUser":{"type":"string"},"BillDate":{"type":"string"},"Market":{"type":"string"},"CheckOutDate":{"type":"string"},"CheckOutUser":{"type":"string"},"Table":{"type":"string"},"Discount":{"type":"string"},"ConAmount":{"type":"number"},"PayAmount":{"type":"number"},"DiscountAmount":{"type":"number"},"ClearAmount":{"type":"number"},"FrantionAmount":{"type":"number"}},"required":["RestaurantName","OrderNo","Person","Details","Pays","PayRemark","OpenData","OpenUser","BillDate","Market","CheckOutDate","CheckOutUser","Table","Discount","ConAmount","PayAmount","DiscountAmount","ClearAmount","FrantionAmount"]}
您好,这个问题是你的数据集的写法有问题导致的,具体写法已经在另一个帖子里告知了
页:
[1]