fromJson

Parses a schema from JSON, ignoring unknown keys other than x-* extensions.

Return

The parsed schema.

Parameters

value

The JSON to parse.

Throws

if the JSON is not a valid schema.