Skip to content

routier-collection


routier-collection / core/src / compiledSchemaToJsonSchema

Function: compiledSchemaToJsonSchema()

compiledSchemaToJsonSchema<T>(compiledSchema, target, useOutputType): Record<string, unknown>

Defined in: core/src/schema/utils/standardJsonSchema.ts:456

Converts a CompiledSchema to a JSON Schema object schema.

Type Parameters

T

T extends object

Parameters

compiledSchema

CompiledSchema<T>

target

Target

useOutputType

boolean = false

Returns

Record<string, unknown>

Released under the MIT License.