Skip to content

Commit 685c027

Browse files
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

File renamed without changes.

packages/spec/src/api/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88

99
export * from './contract.zod';
1010
export * from './endpoint.zod';
11+
export * from './discovery.zod';
12+
export * from './realtime.zod';

packages/spec/src/system/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
export * from './manifest.zod';
1212
export * from './datasource.zod';
13-
export * from './api.zod';
1413
export * from './identity.zod';
1514
export * from './auth.zod';
1615
export * from './auth-protocol';
@@ -24,9 +23,7 @@ export * from './license.zod';
2423
export * from './webhook.zod';
2524
export * from './translation.zod';
2625
export * from './driver.zod';
27-
export * from './discovery.zod';
2826
export * from './plugin.zod';
29-
export * from './realtime.zod';
3027
export * from './events.zod';
3128
export * from './job.zod';
3229
export * from './constants';

0 commit comments

Comments
 (0)