File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
packages/settings-library/src/settings_library Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1- from typing import Annotated
2-
3- from pydantic import AnyHttpUrl , BeforeValidator , Field , TypeAdapter
1+ from pydantic import AnyHttpUrl , Field
42from pydantic_settings import SettingsConfigDict
53
64from .base import BaseCustomSettings
75from .basic_types import IDStr
86
9- ANY_HTTP_URL_ADAPTER : TypeAdapter = TypeAdapter (AnyHttpUrl )
10-
117
128class S3Settings (BaseCustomSettings ):
139 S3_ACCESS_KEY : IDStr
1410 S3_BUCKET_NAME : IDStr
15- S3_ENDPOINT : Annotated [
16- str , BeforeValidator ( lambda x : str ( ANY_HTTP_URL_ADAPTER . validate_python ( x )))
17- ] | None = Field ( default = None , description = "do not define if using standard AWS" )
11+ S3_ENDPOINT : AnyHttpUrl | None = Field (
12+ default = None , description = "do not define if using standard AWS"
13+ )
1814 S3_REGION : IDStr
1915 S3_SECRET_KEY : IDStr
2016
You can’t perform that action at this time.
0 commit comments