#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# DataSchema.Base Class

Defined in: `dataschema/js/dataschema-base.js:19`
Module: dataschema-base
Parent Module: dataschema

Base class for the YUI DataSchema Utility.

- Index
- Methods

## Item Index

### Methods

- apply static
- parse

## Methods

### `apply`

(

- `schema`
- `data`

)
Object static

Defined in `dataschema/js/dataschema-base.js:25`

Overridable method returns data as-is.

#### Parameters:

- `schema` Object

  Schema to apply.

- `data` Object

  Data.

#### Returns:

Object: Schema-parsed data.

### `parse`

(

- `value`
- `field`

)
Object

Defined in `dataschema/js/dataschema-base.js:38`

Applies field parser, if defined

#### Parameters:

- `value` Object

  Original value.

- `field` Object

  Field.

#### Returns:

Object: Type-converted value.