Page Contents

Home > @loopback/openapi-v3 > jsonToSchemaObject

jsonToSchemaObject() function

Converts JSON Schemas into a SchemaObject

Signature:

export declare function jsonToSchemaObject(json: JsonSchema): SchemaObject | SchemaRef;

Parameters

Parameter Type Description
json JsonSchema JSON Schema to convert from

Returns:

SchemaObject | SchemaRef