# getDotPath

> This document is the Markdown version of [valibot.dev/api/getDotPath/](https://valibot.dev/api/getDotPath/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

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

```ts
const dotPath = v.getDotPath<TSchema>(issue);
```

## Generics

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

## Parameters

- `issue` `InferIssue<TSchema>`

## Returns

- `dotPath` `IssueDotPath<TSchema> | null`
