googleapis / googleapis/google-cloudevents-java

Add support for Pub/Sub

Open
#137 0 comments 0 reactions 0 assignees View on GitHub
api: eventarc priority: p3 type: feature request
Dominant language
Java
Stars
22
Forks
10
PR merge metrics
No merged PRs in 30d

Description

## Current Behavior

Pub/Sub messages are incompatible with protojson parsing. This is because Pub/Sub messages include duplicate fields `message_id`/`messageId`, and `publish_time`/`publishTime`, which the protobuf spec indicates is invalid.

Note: parsing can also error on the "@type" field

## Expected Behavior

Tooling that allows for parsing of duplicated fields.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Java protojson parsing path and the Pub/Sub CloudEvent message definitions; the issue names no files or tests. Reproduce parsing with duplicate message_id/messageId and publish_time/publishTime fields, then check the @type case. Done means the tooling accepts these Pub/Sub messages without parsing errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.