scotthovestadt / schema-object

Enforce schema on JavaScript objects, including type, transformation, and validation. Supports extends, sub-schemas, and arrays.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Constructors" example not working ?

jdarrort opened this issue · comments

I am interested in schema-object for my project.

Following project description page, reaching the OPTIONS/ CONSTRUCTORS sample, I got a "TypeError: this.super is not a function", ( called by var person = new Person({ firstName: 'Scott' });)

Replacing ".super" by ".populate" got it up and running.

I am pretty new with node,
Do you also have this error ?