Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function setSchemaMessage
import { setSchemaMessage } from "https://deno.land/x/valibot@v0.2.0-to-json-schema/src/storages/schemaMessage/schemaMessage.ts";

Sets a schema error message.

Parameters

message: ErrorMessage<BaseIssue<unknown>>

The error message.

optional
lang: string

The language of the message.