Skip to content

Pub/Sub PullRequest.maxMessages is mandatory #997

Closed
@mziccard

Description

@mziccard

The PullRequest.maxMessages is a mandatory field, if we don't provide it we get this error:

{
 "error": {
  "code": 400,
  "message": "A required argument is missing in the request: (argument=\"max_messages\").",
  "status": "INVALID_ARGUMENT",
 }
}

The PubSub API design we drafted considers maxMessages an optional option, we must either fix this (by transforming it into a mandatory parameter) or use a default value if the user does not explicitly provide it. /cc @eschapira @aozarov thoughts?

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions