You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First ensure you are using a camera that is currently supported by Open GoPro. Any other tickets will be rejected.
Component
What is the bug in?
PythonSDK media_list.py
Media List and Metadata containers and helper methods
Describe the bug
/Users/richarddawkins/.pyenv/versions/3.11.4/envs/goproenv/lib/python3.11/site-packages/open_gopro/models/media_list.py:146: PydanticDeprecatedSince20: Pydantic V1 style @validator validators are deprecated. You should migrate to Pydantic V2 style @field_validator validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/ @validator("file_system", pre=True, each_item=True)
To Reproduce
Create a pytest .py file that imports open_gopro and run it. You will get the same warning of deprecated use of "validators"
Expected behavior
You will see a warning saying
"PydanticDeprecatedSince20: Pydantic V1 style @validator validators are deprecated. You should migrate to Pydantic V2 style @field_validator validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/ @validator("file_system", pre=True, each_item=True)"
Screenshots
Hardware
MacOS
Additional context
It's just a warning, but in order to suppress it you would just migrate the validator to field_validator.
The text was updated successfully, but these errors were encountered:
Component
What is the bug in?
PythonSDK media_list.py
Media List and Metadata containers and helper methods
Describe the bug
/Users/richarddawkins/.pyenv/versions/3.11.4/envs/goproenv/lib/python3.11/site-packages/open_gopro/models/media_list.py:146: PydanticDeprecatedSince20: Pydantic V1 style
@validator
validators are deprecated. You should migrate to Pydantic V2 style@field_validator
validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/@validator("file_system", pre=True, each_item=True)
To Reproduce
Create a pytest .py file that imports open_gopro and run it. You will get the same warning of deprecated use of "validators"
Expected behavior
You will see a warning saying
"PydanticDeprecatedSince20: Pydantic V1 style
@validator
validators are deprecated. You should migrate to Pydantic V2 style@field_validator
validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/@validator("file_system", pre=True, each_item=True)"
Screenshots
Hardware
MacOS
Additional context
It's just a warning, but in order to suppress it you would just migrate the validator to field_validator.
The text was updated successfully, but these errors were encountered: