Skip to content

Protobuf to JSON/Dict Fails for repeated datetime #185

@ajaymerchia

Description

@ajaymerchia

I have the following protobuf definition

message DateAxis { repeated google.protobuf.Timestamp values = 1; }

image

Because of the snippet on line 964, & since native datetime objects don't have a to_dict method associated with them, the protobuf serialization fails. Need to apply the same if isinstance(value, datetime): chaining logic as before to avoid bugs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions