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

x/valibot/src/utils/getDotPath/getDotPath.ts>getDotPath

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

Creates and returns the dot path of an issue if possible.

Parameters

issue: BaseIssue<unknown>

The issue to get the dot path from.

Returns

string | null

The dot path or null.

Creates and returns the dot path of an issue if possible.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>

Parameters

The issue to get the dot path from.

Returns

The dot path or null.