Learn R Programming

googlePubsubR (version 0.0.4)

schemas_validate_message: Validates a message against a schema

Description

Validates a message against a schema

Usage

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

Value

logical TRUE if successfully validated

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

See Also

Other Schema functions: schemas_create(), schemas_delete(), schemas_exists(), schemas_get(), schemas_list(), schemas_validate()