Uses a JSON Pointer for a value within a data object to retrieve
the schema for that value within schema for the data object.
The optional third parameter can also be set to return something else:
'schema' (default): the schema for the value indicated by the data pointer
'parentSchema': the schema for the value's parent object or array
'schemaPointer': a pointer to the value's schema within the object's schema
'parentSchemaPointer': a pointer to the schema for the value's parent object or array
// schema - The schema to get the sub-schema from
// { Pointer } dataPointer - JSON Pointer (string or array)
// { string = 'schema' } returnType - what to return?
// - The located sub-schema
'getFromSchema' function
Uses a JSON Pointer for a value within a data object to retrieve the schema for that value within schema for the data object.
The optional third parameter can also be set to return something else: 'schema' (default): the schema for the value indicated by the data pointer 'parentSchema': the schema for the value's parent object or array 'schemaPointer': a pointer to the value's schema within the object's schema 'parentSchemaPointer': a pointer to the schema for the value's parent object or array
// schema - The schema to get the sub-schema from // { Pointer } dataPointer - JSON Pointer (string or array) // { string = 'schema' } returnType - what to return? // - The located sub-schema