@@ -271,7 +271,7 @@ class ADOTemplate(BaseModel):
271271 ado_fields : Dict [str , str ]
272272 on_duplicate : ADODuplicateTemplate
273273
274- # validator needed for backward compatibility
274+ # validator needed to convert auth_token to SecretData
275275 @validator ("auth_token" , pre = True , always = True )
276276 def validate_auth_token (cls , v : Any ) -> SecretData :
277277 if isinstance (v , str ):
@@ -287,7 +287,7 @@ def validate_auth_token(cls, v: Any) -> SecretData:
287287class TeamsTemplate (BaseModel ):
288288 url : SecretData [str ]
289289
290- # validator needed for backward compatibility
290+ # validator needed to convert url to SecretData
291291 @validator ("url" , pre = True , always = True )
292292 def validate_url (cls , v : Any ) -> SecretData :
293293 if isinstance (v , str ):
@@ -495,7 +495,7 @@ class GithubIssueTemplate(BaseModel):
495495 labels : List [str ]
496496 on_duplicate : GithubIssueDuplicate
497497
498- # validator needed for backward compatibility
498+ # validator needed to convert auth to SecretData
499499 @validator ("auth" , pre = True , always = True )
500500 def validate_auth (cls , v : Any ) -> SecretData :
501501 def try_parse_GithubAuth (x : dict ) -> Optional [GithubAuth ]:
0 commit comments