Skip to content

Commit d18ba32

Browse files
committed
test(types): mark the spec-only-key census a sanctioned spec/ui namespace importer (#25923)
The census walks the whole `@objectstack/spec/ui` surface to pair each mirror with its same-name spec schema, so the namespace import trips the #3090 `no-restricted-imports` entry for the spec `FormFieldSchema`. It reads the schemas at runtime only; the disable carries that reason, as the other sanctioned namespace importers do. Claude-Session: https://claude.ai/code/session_01WGufzhgTn8yFwqXxanJd4c Co-authored-by: Claude <noreply@anthropic.com>
1 parent 96c8d55 commit d18ba32

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎ui/packages/types/src/__tests__/zod-mirror-parity.test.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,10 @@ import { dirname, join } from 'node:path';
958958
import ts from 'typescript';
959959
import type { z } from 'zod';
960960
import type { WithoutCatchall } from './zod-catchall-type';
961+
// The spec-only-key census (objectstack#25923) walks the WHOLE spec/ui surface to
962+
// pair each mirror with its same-name spec schema — the namespace import is its
963+
// instrument, read at runtime only, a sanctioned importer (#3090 tripwire).
964+
// eslint-disable-next-line no-restricted-imports
961965
import * as SpecUi from '@objectstack/spec/ui';
962966
import * as SpecData from '@objectstack/spec/data';
963967
import * as ZodBarrel from '../zod/index.zod.js';

0 commit comments

Comments
 (0)