-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementMinor improvements to existing functionalityMinor improvements to existing functionality
Description
Context
From PR #113 discussion: we currently maintain schema definitions in two places:
- TypeScript types (
core/*.ts) - for webui consumption, IDE type checking - Python Pydantic models (
packages/smartem-workspace/.../schema.py) - for CLI runtime validation
This creates maintenance overhead when schemas change.
Options to explore
- JSON Schema as source of truth - generate both TS types and Python models from JSON Schema
- Generate Python from TypeScript - tools like ts-to-python
- Generate TypeScript from Python - datamodel-code-generator reverse mode
- Keep separate - accept manual sync overhead
Acceptance criteria
- Evaluate each approach for complexity vs benefit
- Prototype preferred approach
- Document decision in ADR
Metadata
Metadata
Assignees
Labels
enhancementMinor improvements to existing functionalityMinor improvements to existing functionality