Commit cc9cc34
committed
refactor(codegen): extract SchemaFormatter behaviour and SchemaCore
Introduces two new modules to eliminate the ~780-line duplication between
ZodSchemaGenerator and ValibotSchemaGenerator:
- SchemaFormatter: behaviour defining ~20 output-syntax callbacks
(wrap_optional, wrap_array, format_enum, format_string, etc.)
- SchemaCore: all shared logic delegating output to a formatter module
(topological sort, dep discovery, field/action introspection,
resource schema generation, regex safety helpers)1 parent a1d7207 commit cc9cc34
File tree
2 files changed
+623
-0
lines changed- lib/ash_typescript/codegen
2 files changed
+623
-0
lines changed
0 commit comments