Skip to content

JSONPath Tools / @jsonpath-tools/jsonpath / jsonSchemaToType

Function: jsonSchemaToType()

ts
function jsonSchemaToType(jsonSchema, additionalJSONSchemas): DataType

Converts the given JSON Schema to a data type.

Parameters

jsonSchema

JSONSchemaWithURI

JSON schema with its URI (optional).

additionalJSONSchemas

JSONSchemaWithURI[] = []

Additional JSON Schemas that can be referenced from the jsonSchema (via $ref).

Returns

DataType