Hi community,

We are starting a community effort to migrate connector and transform
validation logic to declarative `OptionRule`, and we would like to invite
everyone to participate.

Today, some configuration validations in SeaTunnel are still scattered
across connector/transform `*Config.java` files, factories, or Source/Sink
initialization logic, usually as imperative `if/throw` checks. These checks
are necessary, but keeping them hidden in runtime code creates several
problems:

- Similar rules are implemented repeatedly in different modules, with
inconsistent behavior and error messages.
- Tools such as `--check`, REST API, Web UI, CLI, and AI-assisted config
generation cannot fully understand these hidden rules.
- Users may only discover configuration issues at runtime, which makes
troubleshooting harder.
- When maintaining connectors/transforms, it is harder to tell whether a
check is a configuration rule or runtime logic.

With the STIP-28 framework work completed, SeaTunnel can now express richer
declarative validation through `optionRule()` + `Conditions.*`, including
numeric ranges, non-blank strings, cross-field comparisons, conditional
constraints, and more. The next step is to gradually migrate eligible
connector and transform validations into this declarative model.

This migration is not just a code cleanup. The goal is to make
configuration constraints a clearer and more visible part of SeaTunnel:

- For users: configuration errors can be caught earlier with more
consistent messages.
- For tools: REST, CLI, Web UI, and AI-assisted config generation can
consume more complete rule metadata.
- For developers: common validation logic moves back into the unified
`OptionRule` system, while connector and transform code can focus more on
runtime behavior.
- For contributors: tasks can be split by connector or transform, making
them suitable for small, focused PRs.


*Task Tracking*

- Umbrella Issue: [#11007](https://github.com/apache/seatunnel/issues/11007)


*How to Participate*

The task list, migration examples, and claiming instructions are all
available in the umbrella issue.
If you would like to help, please pick a connector or transform from the
issue and leave a comment there to claim it.

This is a foundational step toward making SeaTunnel's configuration
contract explicit, structured, and machine-readable. As more modules are
migrated, validation rules will no longer live only as hidden runtime
checks; they will become part of a metadata surface that can be understood
consistently by users, developers, tools, and future AI-assisted
capabilities. This will provide a stronger basis for generating,
validating, explaining, and repairing SeaTunnel job configurations with
higher accuracy and reliability.

We warmly welcome your participation. If you are familiar with a connector
or transform, or if you want to start contributing to SeaTunnel with a
clear and focused task, please feel free to claim one in the issue.


Best regards,
Zhiwei Niu

Reply via email to