Vamsi-klu opened a new pull request, #62657: URL: https://github.com/apache/airflow/pull/62657
## Summary - When `update_mask` is provided in PATCH endpoints, Pydantic validation was previously skipped entirely - Invalid field values could bypass validation and go straight to `setattr()` on ORM models - Now validation runs on the subset of fields being updated regardless of whether `update_mask` is provided - Affected endpoints: variables, connections, dags, pools ## Test plan - [ ] Verify PATCH with valid `update_mask` and valid data still works - [ ] Verify PATCH with `update_mask` and invalid data now returns 400/422 - [ ] Verify PATCH without `update_mask` still validates correctly - [ ] Run `pytest tests/api_fastapi/core_api/routes/public/test_variables.py tests/api_fastapi/core_api/routes/public/test_connections.py tests/api_fastapi/core_api/routes/public/test_dags.py tests/api_fastapi/core_api/routes/public/test_pools.py -v` 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
