open-circle/valibot 0a235e22..df48dd9d
base and head as given
- Standard JSON Schema conversion entered the package.
- JSON Schema conversion types moved into a dedicated type layer.
- Conversion functions now depend on the dedicated type layer.
- files changed
- 22
- in a component
- 14
- lines in components
- 446
- components
- 6
- public routes changed
- 0
- schema statements
- 0
- new dependencies
- 0
- excluded by role
- 8
Standard JSON Schema conversion
Added- Before
- Standard conversion did not exist
- After
- Standard conversion exposes input/output
Schemas can now expose a Standard JSON Schema interface that generates input or output schemas for draft-07, draft-2020-12, and OpenAPI 3.0. Existing conversion options can be passed through the interface.
In favour
- In favour: Reuses the existing converter for standard input and output generation
The model found nothing to weigh against this.
Inspect 12 source files behind this explanation
- packages/to-json-schema/src/type.ts
- packages/to-json-schema/src/types/schema.ts
- packages/to-json-schema/src/converters/convertSchema/convertSchema.ts
- packages/to-json-schema/src/functions/toStandardJsonSchema/toStandardJsonSchema.ts
- packages/to-json-schema/src/utils/handleError.ts
- packages/to-json-schema/src/vitest/createContext.ts
- packages/to-json-schema/src/index.ts
- packages/to-json-schema/src/types/standard.ts
- packages/to-json-schema/src/converters/convertAction/convertAction.ts
- packages/to-json-schema/src/functions/toJsonSchema/toJsonSchema.ts
- packages/to-json-schema/src/types/config.ts
- packages/to-json-schema/src/functions/toJsonSchemaDefs/toJsonSchemaDefs.ts
5 new dependencies between components — Schema Functions → Schema Types · Schema Converters → Schema Types · Schema Utilities → Schema Types · Vitest Tests → Schema Types · JSON Schema Source → Schema Types
4 dependencies no longer there — Schema Converters → JSON Schema Source · Schema Functions → JSON Schema Source · Schema Utilities → JSON Schema Source · Vitest Tests → JSON Schema Source
What else could behave differently
6 components · 19 filesThese components import changed code, directly or through other files. A traced dependency is a place to review, not a confirmed runtime failure.
Reached 3
| Component | Symbol | Cited at | Files | Reached by |
|---|---|---|---|---|
| Schema Typespackages/to-json-schema/src/types/ | Added JsonSchema | packages/to-json-schema/src/types/schema.ts:30-80 | 2 | 1 direct · 1 at two stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| Schema Functionspackages/to-json-schema/src/functions/ | Signature changed convertSchema1 of 7 changed symbols reaching it | packages/to-json-schema/src/converters/convertSchema/convertSchema.ts:139-657 | 7 | 3 direct · 3 at two steps · 1 at three stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| Schema Converterspackages/to-json-schema/src/converters/ | Signature changed convertAction1 of 4 changed symbols reaching it | packages/to-json-schema/src/converters/convertAction/convertAction.ts:115-411 | 5 | 2 direct · 2 at two steps · 1 at three stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
Held back 1
| Component | Files | Reached by | Resolution |
|---|---|---|---|
| packages/to-json-schema/src/ | 1 | none direct · 1 at three steps | precise |
Ranked lower 2
| Component | Files | Reached by |
|---|---|---|
| packages/to-json-schema/src/utils/ | 2 | 1 direct · 1 at two steps |
| packages/to-json-schema/src/vitest/ | 2 | 1 direct · 1 at two steps |
Statements 3
JsonSchema type reached 2 files in Schema Types. 11convertSchema's signature changed and reached 7 files in Schema Functions. 331convertAction's signature changed and reached 5 files in Schema Converters. 2215 reached files belong to no component — tests, docs and config.
Routes, schema, dependencies
No public URL, no migration and no new package.
Inspect components, files and symbols
Component
File
Function
imports what changeddownstream of it, one mark per step
Diff
Analysis scope
3170 → 6- files at head3,170
- components315
- changed by this change6
Where the new files landed
5 new files| New file | Belongs to | Used by | Calls | Serves |
|---|---|---|---|---|
| packages/to-json-schema/src/types/3 new files | Schema Typesnew territory | JSON Schema SourceSchema ConvertersSchema FunctionsSchema UtilitiesVitest Tests | library/src/ | — |
| packages/to-json-schema/src/functions/2 new files | Schema Functionsbase frame | its own component only | library/src/Schema Types | — |
1 added file carries no component — 1 test.
22 files changed, 16 claims stated. 6 components reached in total.