Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SchemaSettings

import type { SchemaSettings } from "https://googleapis.deno.dev/v1/pubsub:v1.ts";

Settings for validating messages published against a schema.

interface SchemaSettings {
encoding?: "ENCODING_UNSPECIFIED" | "JSON" | "BINARY";
firstRevisionId?: string;
lastRevisionId?: string;
schema?: string;
}

§Properties

§
encoding?: "ENCODING_UNSPECIFIED" | "JSON" | "BINARY"
[src]

Optional. The encoding of messages validated against schema.

§
firstRevisionId?: string
[src]

Optional. The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.

§
lastRevisionId?: string
[src]

Optional. The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.

§
schema?: string
[src]

Required. The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}. The value of this field will be _deleted-schema_ if the schema has been deleted.