Merged
Conversation
dieppa
added a commit
that referenced
this pull request
Feb 27, 2026
…#851) Template payload types (**APPLY** and **ROLLBACK**) are now required to implement the TemplatePayload interface, which provides a validate() method called at pipeline load time — before any change executes. Public API: - **TemplatePayload** interface with validate() returning validation errors - **TemplatePayloadValidationError** for field-level and general error reporting - **TemplateString** wrapper for String-based payloads (e.g. raw SQL) - **ChangeTemplate** and **AbstractChangeTemplate** now enforce **APPLY**/**ROLLBACK** extends TemplatePayload bounds Internal type alignment: - **AbstractTemplateLoadedChange**, **SimpleTemplateLoadedChange**, and **MultiStepTemplateLoadedChange** propagate **TemplatePayload** bounds,enabling direct validate() calls without instanceof checks or casts - **AbstractTemplateExecutableTask** and its subclasses propagate bounds, removing explicit (**TemplatePayload**) casts on **setApplyPayload**/**setRollbackPayload** - **TemplateLoadedTaskBuilder** remains the sole raw-type boundary where runtime reflection constructs the typed hierarchy - FileUtil extended with scalar-to-wrapper conversion for SnakeYAML deserialization of TemplateString from plain YAML strings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Template payload types (APPLY and ROLLBACK) are now required to implement
the TemplatePayload interface, which provides a validate() method called
at pipeline load time — before any change executes.
Public API:
APPLY/ROLLBACK extends TemplatePayload bounds
Internal type alignment:
MultiStepTemplateLoadedChange propagate TemplatePayload bounds,
enabling direct validate() calls without instanceof checks or casts
removing explicit (TemplatePayload) casts on setApplyPayload/setRollbackPayload
runtime reflection constructs the typed hierarchy
deserialization of TemplateString from plain YAML strings