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

x/typebox/src/typebox.ts>ArrayOptions

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
interface ArrayOptions
implements SchemaOptions
import { type ArrayOptions } from "https://deno.land/x/typebox@0.31.20/src/typebox.ts";

Properties

optional
minItems: number

The minimum number of items in this array

optional
maxItems: number

The maximum number of items in this array

optional
uniqueItems: boolean

Should this schema contain unique items

optional
contains: TSchema

A schema for which some elements should match

optional
minContains: number

A minimum number of contains schema matches

optional
maxContains: number

A maximum number of contains schema matches