File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
packages/settings-library/src/settings_library Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 88
99from typing import Annotated , TypeAlias
1010
11- from pydantic import Field , StringConstraints , TypeAdapter
11+ from pydantic import Field , StringConstraints , TypeAdapter , field_validator
1212
1313from .base import BaseCustomSettings
1414
@@ -30,6 +30,13 @@ class TwilioSettings(BaseCustomSettings):
3030 "See https://support.twilio.com/hc/en-us/articles/223133767-International-support-for-Alphanumeric-Sender-ID" ,
3131 )
3232
33+
34+ @field_validator ("TWILIO_COUNTRY_CODES_W_ALPHANUMERIC_SID_SUPPORT" , mode = "before" )
35+ @classmethod
36+ def _parse_country_codes_from_env (cls , v ):
37+ return [str (cc ) for cc in v ]
38+
39+
3340 def is_alphanumeric_supported (self , phone_number : str ) -> bool :
3441 # Some countries do not support alphanumeric serder ID
3542 #
You can’t perform that action at this time.
0 commit comments