找回密码
 立即注册

QQ登录

只需一步,快速开始

opu-hmh

注册会员

15

主题

54

帖子

193

积分

注册会员

积分
193

微信认证勋章

opu-hmh
注册会员   /  发表于:2020-4-22 15:57  /   查看:3613  /  回复:1
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"]}



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

1 个回复

倒序浏览
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2020-4-30 09:17:51
沙发
您好,这个问题是你的数据集的写法有问题导致的,具体写法已经在另一个帖子里告知了
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部