Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

ValidationIssue

interfaz Since 1.2.0

Un mensaje del schema sobre un campo de la entrada que el servidor rechazó con 400 (INVALID_PARAMS, INVALID_QUERY, INVALID_BODY o INVALID_INPUT). Lo llevan ClientError.issues y el campo issues de la respuesta JSON.

ts
import type { ValidationIssue } from "@meekojs/meeko/framework";

Source code src/shared/clients.ts:296

Declaración #

ts
interface ValidationIssue {
	readonly path: string
	readonly message: string
}

Example #

ts
import type { ValidationIssue } from "@meekojs/meeko/framework";

const fieldErrors = (issues: readonly ValidationIssue[] = []): Record<string, string> =>
  Object.fromEntries(issues.map((issue) => [issue.path, issue.message]));

Propiedades #

path #

propiedad sólo lectura

readonly path: string

Claves del campo unidas con ., como "items.0.name"; "" para la entrada completa.

message #

propiedad sólo lectura

readonly message: string

Mensaje del schema, como el de v.minLength(1, "Escribe tu contraseña.").

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/shared/clients.ts