---
title: "createIssue"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/data-schema/src/lib/schema.ts#L368"
---

# createIssue

## Summary

Creates a Standard Schema issue object.

## Signature

```ts
function createIssue(
  message: string,
  path: readonly (PropertyKey | PathSegment)[] | undefined,
): Issue

```

## Parameters

### `message`

Human-readable validation message.

### `path`

Optional issue path within the input value.

## Returns

A Standard Schema issue.