lib/misc/factories_schema_helpers.js
/**
 * ensure correctness of a schema object.
 *
 * @method check_schema_correctness
 * @param schema
 *
 */
ensure correctness of a schema object.
@method check_schema_correctness
@param schema
ensure correctness of a schema object . @method check_schema_correctness @param schema
function check_schema_correctness(schema) {
    assert(schema.name, " expecting schema to have a name");
    assert(schema.fields, " expecting schema to provide a set of fields " + schema.name);
    assert(schema.baseType === undefined || (typeof schema.baseType === "string"));
}
function check_schema_correctness ( schema ) { assert ( schema . name , " expecting schema to have a name" ) ; assert ( schema . fields , " expecting schema to provide a set of fields " + schema . name ) ; assert ( schema . baseType === undefined || ( typeof schema . baseType === "string" ) ) ; }
ensure correctness of a schema object.
ensure correctness of a schema object .