Skip to content

Commit cd4e2fa

Browse files
Copilothotlong
andcommitted
fix: Re-export HttpMethod and FieldMappingSchema to fix test failures
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 85d3c0c commit cd4e2fa

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/spec/src/api/router.zod.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { z } from 'zod';
22
import { CorsConfigSchema, StaticMountSchema, HttpMethod } from '../shared/http.zod';
33

4+
// Re-export HttpMethod for convenience
5+
export { HttpMethod };
6+
47
/**
58
* Route Category Enum
69
* Classifies routes for middleware application and security policies.

packages/spec/src/data/external-lookup.zod.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,7 @@ export const ExternalLookupSchema = z.object({
245245
export type ExternalLookup = z.infer<typeof ExternalLookupSchema>;
246246
export type ExternalDataSource = z.infer<typeof ExternalDataSourceSchema>;
247247
export type ExternalFieldMapping = z.infer<typeof ExternalFieldMappingSchema>;
248+
249+
// Re-export ExternalFieldMappingSchema as FieldMappingSchema for backward compatibility with tests
250+
export { ExternalFieldMappingSchema as FieldMappingSchema };
251+
export type FieldMapping = ExternalFieldMapping;

0 commit comments

Comments
 (0)