-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bug V1Bug related to Pydantic V1.XBug related to Pydantic V1.Xhelp wantedPull Request welcomePull Request welcome
Description
Question
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
pydantic version: 1.4
pydantic compiled: True
install path: /home/kesav/.virtualenvs/smtp/lib/python3.8/site-packages/pydantic
python version: 3.8.0 (default, Oct 28 2019, 16:14:01) [GCC 9.2.1 20191008]
platform: Linux-5.3.0-40-generic-x86_64-with-glibc2.29
optional deps. installed: []
import pydantic
class AppSettings(pydantic.BaseSettings):
redis_dsn: pydantic.RedisDsn = 'redis://:password@integration.com'My redis server has no user name only password it has. If I use above setting I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pydantic/env_settings.py", line 28, in pydantic.env_settings.BaseSettings.__init__
File "pydantic/main.py", line 283, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Test
redis_dsn
userinfo required in URL but missing (type=value_error.url.userinfo)
How to use RedisDsn without user name?
Metadata
Metadata
Assignees
Labels
bug V1Bug related to Pydantic V1.XBug related to Pydantic V1.Xhelp wantedPull Request welcomePull Request welcome