Skip to content

refactor(templates): introduce TemplateField hierarchy#861

Merged
dieppa merged 1 commit intomasterfrom
refactor/concrete_payloads
Mar 10, 2026
Merged

refactor(templates): introduce TemplateField hierarchy#861
dieppa merged 1 commit intomasterfrom
refactor/concrete_payloads

Conversation

@dieppa
Copy link
Member

@dieppa dieppa commented Mar 10, 2026

  • Add TemplateField interface with validate() as base
    for all template field types
  • TemplatePayload extends TemplateField, adds getInfo()
    for transactional metadata
  • Relax SHARED_CONFIG bound from TemplatePayload to
    TemplateField across the template hierarchy
  • Config fields now need only validation, not tx semantics
  • Binary-compatible: existing TemplatePayload impls still
    satisfy the relaxed bound

- Add **TemplateField** interface with `validate()` as base
  for all template field types
- **TemplatePayload** extends TemplateField, adds `getInfo()`
  for transactional metadata
- Relax SHARED_CONFIG bound from `TemplatePayload` to
  `TemplateField` across the template hierarchy
- Config fields now need only validation, not tx semantics
- Binary-compatible: existing TemplatePayload impls still
  satisfy the relaxed bound
@dieppa dieppa merged commit 574a275 into master Mar 10, 2026
4 checks passed
@dieppa dieppa deleted the refactor/concrete_payloads branch March 10, 2026 23:53
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