minca
ApiSchemasNamespacesfragmentsFunctions

Function: text()

function text(
   max, 
   description?, 
   min?
): object;

Defined in: packages/core/src/schemas/fragments.ts:69

A string of at most max characters; min 1 for a field that can't be blank

Parameters

ParameterType
maxnumber
description?string
min?number

Returns

object

maxLength

maxLength: number = max;

minLength?

minLength?: number = min;

type

type: "string";

On this page