TFGSUMIT opened a new pull request, #11586: URL: https://github.com/apache/seatunnel/pull/11586
This PR updates the OptionRule builder to use declarative constraints, improving the code's maintainability and readability. The new implementation uses a builder pattern to create OptionRule instances with declarative constraints, making it easier to add or remove validation rules. Changes: * Updated the OptionRule builder to use declarative constraints * Added new declarative constraints for numeric range, required cross-field comparison, optional cross-field comparison, and conditional value check * Updated the OptionRule class to use the new declarative constraints Testing: * Added a test class to test the OptionRule builder with declarative constraints * Tested with various scenarios to ensure correctness Please review and test this PR to ensure that it meets the requirements and does not introduce any regressions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
