github-actions[bot] opened a new pull request, #71559: URL: https://github.com/apache/airflow/pull/71559
The ClearTaskInstancesBody validator raised pydantic.ValidationError with a string argument for its invalid-input branches. In Pydantic v2 that constructor call raises TypeError, which the core API has no handler for, so an invalid request body surfaced as 500 Internal Server Error instead of a 422. Raising ValueError lets Pydantic report the problem as a normal 422, matching the sibling PatchTaskInstanceBody validator in the same file. (cherry picked from commit efec6ba3529aad93115276c18eee59eb08da3877) Co-authored-by: SreeramaYeshwanthGowd <[email protected]> -- 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]
