Problem
Discriminator/const fields and the typed+raw dual-accessor pattern fall out of the field model and need a codegen template.
Proposed change
Generate const/discriminator fields as defaulted raw values, with a typed accessor and a raw accessor per field. (Two getters + two setters per field reinforces the separate binary-compat baseline for generated code.)
Acceptance
Depends on the four-state field model.
Dependencies
Priority: medium · Effort: small
Problem
Discriminator/const fields and the typed+raw dual-accessor pattern fall out of the field model and need a codegen template.
Proposed change
Generate const/discriminator fields as defaulted raw values, with a typed accessor and a raw accessor per field. (Two getters + two setters per field reinforces the separate binary-compat baseline for generated code.)
Acceptance
Depends on the four-state field model.
Dependencies
Priority: medium · Effort: small