HarshalPalande opened a new pull request, #68386: URL: https://github.com/apache/airflow/pull/68386
## What Add validation for the `port` field in `ConnectionBody` to ensure only valid port numbers are accepted. The valid range is now enforced as: * Minimum: `1` * Maximum: `65535` ## Why Previously, invalid values such as negative numbers, `0`, or values greater than `65535` could be passed to the API model. This change prevents invalid connection configurations from being accepted. ## Tests Added unit tests covering: * Invalid ports: `-1`, `0`, `65536` * Valid ports: `1`, `65535` * Optional value: `None` -- 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]
