canonical / openfga-operator

Charmed OpenFGA
https://charmhub.io/openfga-k8s
Apache License 2.0
1 stars 5 forks source link

Upgrade to Pydantic V2 #102

Open wood-push-melon opened 1 month ago

wood-push-melon commented 1 month ago

Enhancement Proposal

The requirer charm of the openfga integration shows:

lib/charms/openfga_k8s/v1/openfga.py:171
  /Users/shudu/Workspaces/canonical/sync/identity-platform-admin-ui-operator/lib/charms/openfga_k8s/v1/openfga.py:171: 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.9/migration/
    @validator("token_secret_id", pre=True)

Probably it's time to move forward to Pydantic v2 when possible.

syncronize-issues-to-jira[bot] commented 1 month ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-1071.

This message was autogenerated