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
validators generate these warnings when tests are run
To Reproduce
add the ingress lib
run pytest / tox -e unit
Environment
any
Relevant log output
lib/charms/traefik_k8s/v2/ingress.py:255
/code/hexanator/lib/charms/traefik_k8s/v2/ingress.py:255: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide formore details. Deprecatedin Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/
@validator("scheme", pre=True)
lib/charms/traefik_k8s/v2/ingress.py:262
/code/hexanator/lib/charms/traefik_k8s/v2/ingress.py:262: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide formore details. Deprecatedin Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/
@validator("port", pre=True)
lib/charms/traefik_k8s/v2/ingress.py:280
/code/hexanator/lib/charms/traefik_k8s/v2/ingress.py:280: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide formore details. Deprecatedin Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/
@validator("host", pre=True)
lib/charms/traefik_k8s/v2/ingress.py:286
/code/hexanator/lib/charms/traefik_k8s/v2/ingress.py:286: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide formore details. Deprecatedin Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/
@validator("ip", pre=True)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Bug Description
validators generate these warnings when tests are run
To Reproduce
Environment
any
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: