Skip to content

Conversation

@tanderson-ld
Copy link
Contributor

No description provided.

@tanderson-ld tanderson-ld requested a review from a team as a code owner November 20, 2025 15:17
*
* @throws IllegalArgumentException if any required field is missing
*/
public void validate() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, we have to do this because JSON makes an empty one and then fills things in?

return;
}
for (Event event : events) {
if (event == null || event.getEvent() == null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the process by which this could happen? And if it cannot happen, but does happen, then should it be silent?


// if there's no payloads, return
List<PayloadIntent> payloads = serverIntentData.getPayloads();
if (payloads == null || payloads.isEmpty()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like this may also be something we would want to know if we are diagnosing an issue.

}
putObject.validate();
// if server intent hasn't been received yet, ignore the event
if (tempId == null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was treated as an error in the Go implementation, and I also treated as an error. It feels to violate what should be a requirement of the protocol.

}
payloadTransferred.validate();
// if server intent hasn't been received yet, we should reset
if (tempId == null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be logged?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants