Const
arkTest.SchemaGenerator
A random seed generator that can be interpreted to produce an arbitrary ArkType schema.
The generator supports a wide range of configuration options that are discoverable via the optional options argument.
options
Many of those options are forwarded to the corresponding fast-check arbitrary.
fast-check
See also:
arkTest.SeedGenerator
import * as fc from 'fast-check'import { type } from 'arktype'import { arkTest } from '@traversable/arktype-test'const tenSchemas = fc.sample(arkTest.SchemaGenerator({ include: ['null', 'boolean', 'number', 'string', 'array', 'object'] }), 10) Copy
import * as fc from 'fast-check'import { type } from 'arktype'import { arkTest } from '@traversable/arktype-test'const tenSchemas = fc.sample(arkTest.SchemaGenerator({ include: ['null', 'boolean', 'number', 'string', 'array', 'object'] }), 10)
arkTest.SchemaGenerator
A random seed generator that can be interpreted to produce an arbitrary ArkType schema.
The generator supports a wide range of configuration options that are discoverable via the optional
options
argument.Many of those options are forwarded to the corresponding
fast-check
arbitrary.See also:
arkTest.SeedGenerator