DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Validate Data Defined by Simple-Schema


// 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();



Published

Oct 29, 2015

Last Updated

Oct 29, 2015

Category

Tech

Tags

  • meteor 47
  • simple-schema 1
  • validate 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor