DataSchema.Base Class
Defined in:
Module: dataschema-baseyui3/src/dataschema/js/dataschema-base.js:19
Parent Module: dataschema
Base class for the YUI DataSchema Utility.
Methods
apply
(
Object
static
-
schema
-
data
Overridable method returns data as-is.
Parameters:
-
schema
ObjectSchema to apply.
-
data
ObjectData.
Returns:
Object:
Schema-parsed data.
parse
(
Object
-
value
-
field
Applies field parser, if defined
Parameters:
-
value
Object<p>Original value.</p>
-
field
Object<p>Field.</p>
Returns:
Object:
<p>Type-converted value.</p>