Closed gibbs-shih closed 5 months ago
const validateCurrentBalance = BalanceSheetsNeoSchema.safeParse(currentBalance); if (!validateCurrentBalance.success) { // eslint-disable-next-line no-console console.error('Validation failed for currentBalance', validateCurrentBalance.error); return res.status(400).json({} as IBalanceSheetsResponse); }
npm i zod
建立 balance_sheets_neo.ts 檔案
bs 欄位修改
引入 BalanceSheetsNeoSchema.safeParse(reportData.balanceSheet) 驗證
question A021要嗎??
加入A021 nonAssets.fairValue 並驗證
take about 6 hr