tlhunter / node-grille

Google Spreadsheets CMS

Home Page:https://www.npmjs.com/package/grille

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loose/Strict Validation Modes

tlhunter opened this issue · comments

Specify a Loose/Strict flag when instantiating Grille.

Loose Mode
  • Empty JSON -> {}
  • Empty Array -> []
  • Empty Number -> 0
  • Boolean isn't TRUE/FALSE -> false

All conversion issues should be displayed as warnings as specified in #12.

Strict Mode

Encountering any of the above should result in a thrown error and data not importing/creating a version. All conversion issues should be displayed as errors as specified in #12.