Skip to content

feat: support scalar field defaults in the Wirespec language#644

Open
wilmveel wants to merge 1 commit into
masterfrom
claude/avro-defaults-schema-evolution-daOiZ
Open

feat: support scalar field defaults in the Wirespec language#644
wilmveel wants to merge 1 commit into
masterfrom
claude/avro-defaults-schema-evolution-daOiZ

Conversation

@wilmveel

Copy link
Copy Markdown
Contributor

Add a field: Type = value default-value syntax for scalar fields
(String, Integer, Number, Boolean). Defaults flow through the parser AST
and the IR, are emitted natively where the target language supports them
(Kotlin, Python, Scala), are preserved on the Wirespec round-trip, and
are written to / read from Avro schemas (.avsc and .avdl). Java records,
TypeScript type aliases and Rust structs cannot express per-field
defaults, so their type declarations are left unchanged.

https://claude.ai/code/session_014V9V5ZXocEa6KJnvLBkjcP

Add a `field: Type = value` default-value syntax for scalar fields
(String, Integer, Number, Boolean). Defaults flow through the parser AST
and the IR, are emitted natively where the target language supports them
(Kotlin, Python, Scala), are preserved on the Wirespec round-trip, and
are written to / read from Avro schemas (.avsc and .avdl). Java records,
TypeScript type aliases and Rust structs cannot express per-field
defaults, so their type declarations are left unchanged.

https://claude.ai/code/session_014V9V5ZXocEa6KJnvLBkjcP
@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants