nzw921rx opened a new pull request, #11010:
URL: https://github.com/apache/seatunnel/pull/11010

   ### Purpose of this pull request
   
   Add Map-type condition validators for the configuration option validation 
framework.
   
   **New operators:**
   - Add `mapNotEmpty(option)` — validates that the Map value is not empty
   - Add `mapContainsKey(option, key)` — validates that the Map contains a 
specific key
   - Add `mapContainsKeys(option, key1, key2, ...)` — validates that the Map 
contains all specified keys
   
   **Documentation:**
   - Update `docs/en/architecture/configuration-and-option-system.md` — add Map 
category to operator table and pattern guide
   - Update `docs/zh/architecture/configuration-and-option-system.md` — same 
for Chinese version
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. 
   
   ### How was this patch tested?
   
   Unit tests added in `ConfigValidatorTest.java`:
   - `testMapNotEmpty` — verifies empty map fails, non-empty passes
   - `testContainsKey` — verifies missing key fails, present key passes
   - `testContainsKeys` — verifies partial keys fail, all keys pass, extra keys 
still pass
   - `testContainsKeyWithNullValue` — verifies key presence check (not value 
check)
   - `testMapNotEmptyAndContainsKeyCombined` — verifies AND-chaining of map 
conditions
   
   ```bash
   ./mvnw -pl seatunnel-api test
   ```


-- 
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]

Reply via email to