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

ValidationMessage

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

Represent user-facing validation result message.

interface ValidationMessage {
code?: string;
level?: "LEVEL_UNSPECIFIED" | "WARNING" | "ERROR";
message?: string;
metadata?: {
[key: string]: string;
}
;
}

§Properties

§
code?: string
[src]

A custom code identifying this specific message.

§
level?: "LEVEL_UNSPECIFIED" | "WARNING" | "ERROR"
[src]

Message severity level (warning or error).

§
message?: string
[src]

The result of the validation.

§
metadata?: {
[key: string]: string;
}
[src]

Additional metadata related to the result.