Validates a message against a schema

schemas_validate_message(
  schema,
  message,
  encoding = c("ENCODING_UNSPECIFIED", "JSON", "BINARY"),
  project = ps_project_get()
)

Arguments

schema

character, Schema Required, schema name or instance of a Schema object

message

PubsubMessage Required, an instance of a PubsubMessage, can be created using PubsubMessage

encoding

character The encoding of the message

project

character A GCP project id

Value

logical TRUE if successfully validated

See also