Commit 685c027
committed
refactor: remove realtime.zod.ts and add discovery.zod.ts with comprehensive schemas and tests
- Deleted the existing realtime.zod.ts file containing schemas for realtime events, subscriptions, and presence.
- Introduced discovery.zod.ts to define schemas for API capabilities, routes, and discovery responses.
- Added extensive tests for the new discovery schemas to ensure validation and default values.
- Created realtime.zod.ts with schemas for transport protocols, event types, subscriptions, presence, and realtime events.
- Implemented tests for the new realtime schemas to validate various scenarios and edge cases.1 parent 7731913 commit 685c027
6 files changed
Lines changed: 2 additions & 3 deletions
File tree
- packages/spec/src
- api
- system
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | 26 | | |
29 | | - | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
0 commit comments