Tags: Coding-Dev-Tools/schemaforge
Tags
feat: VS Code extension with live preview, diff, and quick convert (v… …1.7.0) - New companion repo: vscode-schemaforge/ — VS Code extension - Commands: convert, quickConvert (Ctrl+Alt+S), diff, detect (Ctrl+Alt+D) - Live Preview WebView panel showing all format conversions - Custom editor for .schemaforge files - Schema diff using VS Code native diff editor - Right-click context menu for schema files - pyproject.toml: bumped to v1.7.0, updated description (11 formats) - README: updated format tables, VS Code extension section, roadmap - Architecture diagram updated to include all 11 formats
feat: JSON Schema format support (v1.2.0) Add JSON Schema as the 8th supported format in SchemaForge. - JSONSchemaParser: reads JSON Schema into Schema IR (tables→definitions, columns→properties) with full type mapping (string, integer, number, boolean, object, array, date-time, uuid, enum) - JSONSchemaGenerator: outputs JSON Schema draft 2020-12 from IR with per table, required arrays, enum lists, maxLength, defaults, descriptions, and for single-table schemas - 29 new tests: parsing, generation, roundtrip, cross-format (SQL↔JSON Schema, Prisma), type config integration, edge cases - Updated CLI: --from/--to and --format include json_schema - Sample fixture: fixtures/sample.json_schema.json - 189/189 tests passing
feat: custom type mapping configuration (v1.1.0)
Add TypeConfig class allowing users to override default type mappings
per format via YAML/JSON config files with template variable support.
- TypeConfig: load from .yaml/.yml/.json, merge, template variable
resolution ({length}, {precision}, {scale}, {values})
- CLI: --type-map option for schemaforge convert
- All 7 generators (SQL, Prisma, Drizzle, TypeORM, Django, SQLAlchemy,
Alembic) forward type_config through resolve_type/build_type_string
- has_type_override helper lets generators skip special-case formatting
when an override is active
- 282-line test suite: unit tests, file loading, merge, integration
tests across 3 formats, roundtrip fidelity verification
- Sample fixture: fixtures/sample-type-overrides.yaml
- 160/160 tests passing