Skip to content

PURISTA API


PURISTA API / @purista/core / toJSONSchema

Function: toJSONSchema()

toJSONSchema(schema, options?): Promise<SchemaObject>

Defined in: schema/standardSchema.ts:54

Converts supported schema formats into OpenAPI-compatible JSON Schema.

Parameters

schema

Schema

options?

JsonSchemaOptions

Returns

Promise<SchemaObject>