potiuk commented on PR #32867:
URL: https://github.com/apache/airflow/pull/32867#issuecomment-1677405653

   > I looked at the usage of the `Connection` class and I saw that it is in 
[views.py process_form, 
L4643](https://github.com/apache/airflow/blob/main/airflow/www/views.py#L4654) 
as well as in CLI connection_command.py - is this where I should look for 
implementing the validation?
   
   I think 
https://github.com/apache/airflow/blob/main/airflow/www/forms.py#L202 will be 
enough - as mentioned above,  WTForms have built-in validators, including 
Regexp, so simply adding validator to the list should do the trick. All the 
heavy-lifting should be done automatically by WTForms.


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