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"]}
|