Skip to content

refactor: change ModelFieldSchema.defaultValue from String? to Object?#43

Merged
Mastersam07 merged 1 commit into
devfrom
refactor/typed-default-values-in-schema
Mar 16, 2026
Merged

refactor: change ModelFieldSchema.defaultValue from String? to Object?#43
Mastersam07 merged 1 commit into
devfrom
refactor/typed-default-values-in-schema

Conversation

@Mastersam07
Copy link
Copy Markdown
Contributor

Eliminates round-trip string parsing for default values. Values now stay typed (bool, int, double, String) through the pipeline, with toString()` applied only at the SQL boundary.

Updated _addFieldToBuilder to use pattern matching instead of string parsing, and _extractDefaultValue to return typed values directly.

@Mastersam07 Mastersam07 merged commit 296d1e3 into dev Mar 16, 2026
6 checks passed
@Mastersam07 Mastersam07 deleted the refactor/typed-default-values-in-schema branch March 16, 2026 08:51
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant