Skip to content

Using deprecated Protobuf APIs #410

@y4n9squared

Description

@y4n9squared

I'm seeing many instances of

.venv/lib/python3.12/site-packages/protovalidate/internal/rules.py:863: DeprecationWarning: label() is deprecated. Use is_required() or is_repeated() instead.
    self._cache[descriptor] = self._new_rules(descriptor)

which stem from the fact that there are many accesses to FieldDescriptor.label which was deprecated in July 2025: https://protobuf.dev/news/2025-07-14/

These warnings start appearing when using the library with protobuf 6.x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions