File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11/* Just a first basic test */
22var Modelate = require ( '../index' ) ;
3+ // In production, just change the require for:
4+ // var Modelate = require('modelate');
35
46// Models
57var userModel = {
68 name : {
79 type : 'string' ,
8- length : { // For now, length do nothng.
10+ length : {
911 max : 10 ,
1012 min : 1 ,
1113 } ,
@@ -15,7 +17,7 @@ var userModel = {
1517 } ,
1618 surname : {
1719 type : 'string' ,
18- length : { // For now, length do nothng.
20+ length : {
1921 max : 3 ,
2022 min : 1 ,
2123 } ,
Original file line number Diff line number Diff line change 11/* Just a first basic test */
22var Modelate = require ( '../index' ) ;
3+ // In production, just change the require for:
4+ // var Modelate = require('modelate');
35
46var model = {
57 name : {
68 type : 'string' ,
7- length : { // For now, length do nothng.
9+ length : {
810 max : 10 ,
911 min : 1 ,
1012 } ,
@@ -14,7 +16,7 @@ var model = {
1416 } ,
1517 surname : {
1618 type : 'string' ,
17- length : { // For now, length do nothng.
19+ length : {
1820 max : 3 ,
1921 min : 1 ,
2022 } ,
You can’t perform that action at this time.
0 commit comments