bupkis
API
Assertions
Preparing search index...
bupkis
z
core
JSONSchemaGenerator
Class JSONSchemaGenerator
Index
Constructors
constructor
Properties
metadata
Registry
target
unrepresentable
override
io
counter
seen
Methods
process
emit
Constructors
constructor
new
JSONSchemaGenerator
(
params
?:
JSONSchemaGeneratorParams
)
:
JSONSchemaGenerator
Parameters
Optional
params
:
JSONSchemaGeneratorParams
Returns
JSONSchemaGenerator
Properties
metadata
Registry
metadataRegistry
:
$ZodRegistry
<
Record
<
string
,
any
>
>
target
target
:
"draft-4"
|
"draft-7"
|
"draft-2020-12"
|
"openapi-3.0"
unrepresentable
unrepresentable
:
"any"
|
"throw"
override
override
:
(
ctx
:
{
zodSchema
:
$ZodTypes
;
jsonSchema
:
z
.
core
.
JSONSchema
.
JSONSchema
;
path
:
(
string
|
number
)
[]
;
}
,
)
=>
void
io
io
:
"output"
|
"input"
counter
counter
:
number
seen
seen
:
Map
<
z
.
core
.
$ZodType
<
unknown
,
unknown
,
$ZodTypeInternals
<
unknown
,
unknown
>
>
,
Seen
,
>
Methods
process
process
(
schema
:
z
.
core
.
$ZodType
,
_params
?:
ProcessParams
,
)
:
z
.
core
.
JSONSchema
.
JSONSchema
Parameters
schema
:
z
.
core
.
$ZodType
Optional
_params
:
ProcessParams
Returns
z
.
core
.
JSONSchema
.
JSONSchema
emit
emit
(
schema
:
z
.
core
.
$ZodType
,
_params
?:
EmitParams
,
)
:
z
.
core
.
JSONSchema
.
JSONSchema
Parameters
schema
:
z
.
core
.
$ZodType
Optional
_params
:
EmitParams
Returns
z
.
core
.
JSONSchema
.
JSONSchema
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
metadata
Registry
target
unrepresentable
override
io
counter
seen
Methods
process
emit
API
Assertions
GitHub
npm
bupkis
Loading...