Custom type mapping configuration #36

Open
opened 2026-10-02 21:30:25 +00:00 by warkanum · 2 comments
Owner
  • Allow users to override type mappings used by readers and writers via config
  • Currently mappings are hardcoded per format
- Allow users to override type mappings used by readers and writers via config - Currently mappings are hardcoded per format
warkanum added the Kind/Feature
Priority
High
Kind/Feature
Priority
High
2
labels 2026-10-02 21:30:25 +00:00
Member

Dispatcher assignment (2026-10-03T10:22:33+02:00).

  • Forge/repository: Gitea wdevs/relspecgo
  • Issue: #36 — Custom type mapping configuration
  • Classification: non-simple cross-format configuration implementation requiring design judgment; Ornith is not eligible.
  • Selected backend: Claude Code CLI, model claude-sonnet-5-5 (live command/version/auth checks passed).
  • Worker session/process: to be launched after this assignment comment; no process exists yet.
  • Worktree: /home/hermes/work/issue-agents/wdevs/relspecgo/issue-36-type-mapping
  • Branch: issue-36-type-mapping (created from origin/master; no PR yet)
  • Plan: read issue and repository guidance, implement the smallest correct configurable type-mapping change, add focused tests/docs as appropriate, run relevant Go tests/lint/format checks, commit, push, create a PR, and post delivery evidence here.
Dispatcher assignment (2026-10-03T10:22:33+02:00). - Forge/repository: Gitea wdevs/relspecgo - Issue: #36 — Custom type mapping configuration - Classification: non-simple cross-format configuration implementation requiring design judgment; Ornith is not eligible. - Selected backend: Claude Code CLI, model claude-sonnet-5-5 (live command/version/auth checks passed). - Worker session/process: to be launched after this assignment comment; no process exists yet. - Worktree: /home/hermes/work/issue-agents/wdevs/relspecgo/issue-36-type-mapping - Branch: issue-36-type-mapping (created from origin/master; no PR yet) - Plan: read issue and repository guidance, implement the smallest correct configurable type-mapping change, add focused tests/docs as appropriate, run relevant Go tests/lint/format checks, commit, push, create a PR, and post delivery evidence here.
Member

Delivery for #36: PR #47, branch issue-36-type-mapping, SHA 948419ffd3.

Adds a repeatable --type-map sqltype=gotype flag (WriterOptions.TypeMappings) overriding SQL-to-Go types in the bun and gorm writers; defaults unchanged.

Verification: gofmt clean, go vet ./cmd/... ./pkg/writers/... clean, go test ./pkg/writers/... ./cmd/... passes (new tests for the parser and both mappers). Full repo test run and golangci-lint were not run.

Caveats: bun/gorm only; flag only (no config file); no import generation for package-qualified types; no end-to-end CLI run (binary execution needed approval in this environment).

Delivery for #36: PR https://git.warky.dev/wdevs/relspecgo/pulls/47, branch issue-36-type-mapping, SHA 948419ffd3b8b6e1db160507ba633853309fc39c. Adds a repeatable --type-map sqltype=gotype flag (WriterOptions.TypeMappings) overriding SQL-to-Go types in the bun and gorm writers; defaults unchanged. Verification: gofmt clean, go vet ./cmd/... ./pkg/writers/... clean, go test ./pkg/writers/... ./cmd/... passes (new tests for the parser and both mappers). Full repo test run and golangci-lint were not run. Caveats: bun/gorm only; flag only (no config file); no import generation for package-qualified types; no end-to-end CLI run (binary execution needed approval in this environment).
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wdevs/relspecgo#36