API reference
json-schema-subset
Import
Section titled “Import”import * as api from "@fungi.computer/forage/json-schema-subset";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| function | jsonSchemaSubset() | Decode the supported schema subset before using the shared Zod compiler. Refuse depth over 32, more than 50,000 expanded nodes and reserved keys before recursive decoding. Callers bound transport bytes separately. |
jsonSchemaSubset()function
Section titled “jsonSchemaSubset()”function jsonSchemaSubset( allowNullable?,): ZodPipe< ZodUnknown, ZodType< boolean | Record<string, JSONType>, unknown, $ZodTypeInternals<boolean | Record<string, JSONType>, unknown> >>;Decode the supported schema subset before using the shared Zod compiler. Refuse depth over 32, more than 50,000 expanded nodes and reserved keys before recursive decoding. Callers bound transport bytes separately.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
allowNullable |
boolean |
false |
Returns
Section titled “Returns”ZodPipe<ZodUnknown, ZodType<boolean | Record<string,
JSONType>, unknown, $ZodTypeInternals<boolean | Record<string,
JSONType>, unknown>>>