API Docs for:
Show:

dataschema Module

Abstract class encapsulation for any DataSchema implementation. Pass the constructor configuration an object containing these keys:

  • type - "json", "JSON", Y.DataSchema.JSON, a custom implementation object (must provide an apply method), or a custom function used as the apply method.
  • schema - the object containing the appropriate schema key:values for the specified type of schema parser. What you would pass as the first argument to Y.DataSchema.JSON.apply( SCHEMA, data );

This class constructor replaces the Y.DataSchema object namespace. All loaded schema parser implementations are preserved.

This module provides the following classes:

This module is a rollup of the following modules:

  • dataschema-class
    Abstract class encapsulation for any DataSchema implementation. Pass the constructor configuration an object containing these keys:
    • type - "json", "JSON", Y.DataSchema.JSON, a custom implementation object (must provide an apply method), or a custom function used as the apply method.
    • schema - the object containing the appropriate schema key:values for the specified type of schema parser. What you would pass as the first argument to Y.DataSchema.JSON.apply( SCHEMA, data );
    This class constructor replaces the Y.DataSchema object namespace. All loaded schema parser implementations are preserved.