mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 13:14:11 +00:00
Go's encoding/json emits nil []T as null, not []. The initial ClientPageResponseSchema and ClientHydrateSchema rejected null inboundIds / summary.online / summary.depleted / etc., causing [zod] warnings on every empty list. Add nullableStringArray / nullableNumberArray helpers that accept null and transform to [] so consuming code keeps seeing arrays. Mark ClientRecord.traffic and .reverse nullable too (reverse is explicitly null in MarshalJSON when storage is empty). |
||
|---|---|---|
| .. | ||
| _envelope.ts | ||
| client.ts | ||
| defaults.ts | ||
| inbound.ts | ||
| login.ts | ||
| node.ts | ||
| setting.ts | ||
| status.ts | ||
| xray.ts | ||