Validates a message against a schema
schemas_validate_message(
schema,
message,
encoding = c("ENCODING_UNSPECIFIED", "JSON", "BINARY"),
project = ps_project_get()
)
character
, Schema
Required, schema name or instance of a Schema object
PubsubMessage
Required, an instance of a PubsubMessage
, can be created
using PubsubMessage
character
The encoding of the message
character
A GCP project id
logical
TRUE if successfully validated
Other Schema functions:
schemas_create()
,
schemas_delete()
,
schemas_exists()
,
schemas_get()
,
schemas_list()
,
schemas_validate()