// the object need to be validate according to the schema: var fair = { ... }; var mycon = NewfairsCore.Schemas.Fair.namedContext();
// this method returns true if the object is valid according to the schema // or false if it is not: mycon.validate(fair);
// this method lists all invalid keys: mycon.invalidKeys();