Skip to content

gRPC requests do not accept the ProtoJSON format for google.protobuf.Timestamp #8948

Description

@copdips

Hi,

When sending a gRPC request containing a google.protobuf.Timestamp, Bruno rejects the standard ProtoJSON representation:

{
  "created_after": "2024-01-01T00:00:00Z"
}

with an object expected serialization error. The request currently requires the message-shaped form instead:

{
  "created_after": {
    "seconds": 1704067200
  }
}

This message-shaped workaround works directly in Bruno, but the grpcurl command generated by Bruno cannot be used as-is because grpcurl only accepts the standard RFC3339 representation.

According to the ProtoJSON specification, Timestamp should be represented as an RFC3339 string. It looks like protobuf.js has also recently added spec-compliant ProtoJSON support.

Would Bruno consider supporting the standard RFC3339 representation for Timestamp fields in gRPC requests?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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