Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/valibot/src/storages/index.ts>setSchemaMessage

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
function setSchemaMessage
import { setSchemaMessage } from "https://deno.land/x/valibot@1.0.0-beta.0-to-json-schema/src/storages/index.ts";

Sets a schema error message.

Parameters

message: ErrorMessage<BaseIssue<unknown>>

The error message.

optional
lang: string

The language of the message.