Last active
October 26, 2018 08:18
-
-
Save terary/e7c68bb595013ed09ea187fcc4151305 to your computer and use it in GitHub Desktop.
Test Schema Organizations (JSON) (V 0.1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"paths": { | |
"orgID": { | |
"type": "String", | |
"isSearchable": true, | |
"isRequired": true, | |
"isInsertable": true, | |
"isUpdatable": false, | |
"required": true, | |
"maxlength": 50, | |
"minlength": 3, | |
"unique": true, | |
"description": { | |
"purpose": "This field is used for: ...", | |
"restriction": "max length, min value, explaination of validate " | |
}, | |
"testData": "()=>{return almostRandom('Test Org ') + (new Date()/1); }" | |
}, | |
"companyName": { | |
"type": "String", | |
"isSearchable": true, | |
"isInsertable": true, | |
"isUpdatable": true, | |
"required": true, | |
"maxlength": 50, | |
"minlength": 3, | |
"description": { | |
"purpose": "This field is used for: ...", | |
"restriction": "max length, min value, explaination of validate " | |
}, | |
"testData": "()=>{return almostRandom('Test Org ') + (new Date()/1); }" | |
}, | |
"city": { | |
"type": "String", | |
"isSearchable": true, | |
"isSelectable": true, | |
"isUpdatable": true, | |
"isInsertable": true, | |
"isRequired": false, | |
"maxlength": 100, | |
"minlength": 2, | |
"description": { | |
"purpose": "This field is used for: ...", | |
"restriction": "max length, min value, explaination of validate " | |
}, | |
"testData": "()=>{return almostRandom('Test Org ') + (new Date()/1); }" | |
}, | |
"state": { | |
"type": "String", | |
"isSearchable": true, | |
"isSelectable": true, | |
"isUpdatable": true, | |
"isInsertable": true, | |
"maxlength": 2, | |
"minlength": 2, | |
"required": true, | |
"description": { | |
"purpose": "This field is used for: ...", | |
"restriction": "max length, min value, explaination of validate " | |
}, | |
"testData": "()=>{return almostRandom('Test Org ') + (new Date()/1); }" | |
}, | |
"yearsInBusiness": { | |
"type": "Number", | |
"isSearchable": false, | |
"isUpdatable": true, | |
"isInsertable": true, | |
"max": 300, | |
"min": 0, | |
"required": true, | |
"default": 0, | |
"description": { | |
"purpose": "This field is used for: ...", | |
"restriction": "max length, min value, explaination of validate " | |
}, | |
"testData": "()=>{return almostRandom('Test Org ') + (new Date()/1); }" | |
}, | |
"idxBucket": { | |
"type": "Number", | |
"isSearchable": true, | |
"isUpdatable": true, | |
"isInsertable": true, | |
"max": 9, | |
"min": 0, | |
"required": true, | |
"default": 0, | |
"description": { | |
"purpose": "This field is used for: ...", | |
"restriction": "max length, min value, explaination of validate " | |
}, | |
"testData": "()=>{return almostRandom('Test Org ') + (new Date()/1); }" | |
}, | |
"someDate": { | |
"type": "Date", | |
"isSearchable": true, | |
"isUpdatable": true, | |
"isInsertable": true, | |
"isRequired": true, | |
"set": "RFC3339Date", | |
"required": true, | |
"description": { | |
"purpose": "This field is used for: ...", | |
"restriction": "max length, min value, explaination of validate " | |
}, | |
"testData": "()=>{return almostRandom('Test Org ') + (new Date()/1); }" | |
}, | |
"memberSinceDate": { | |
"type": "Date", | |
"isSearchable": true, | |
"isUpdatable": true, | |
"isInsertable": true, | |
"default": "function(){return new Date().toISOString(); }", | |
"set": "RFC3339Date", | |
"required": true, | |
"description": { | |
"purpose": "This field is used for: ...", | |
"restriction": "max length, min value, explaination of validate " | |
}, | |
"testData": "()=>{return almostRandom('Test Org ') + (new Date()/1); }" | |
}, | |
"isActive": { | |
"type": "Boolean", | |
"isSearchable": true, | |
"isSelectable": true, | |
"isUpdatable": true, | |
"isInsertable": true, | |
"required": true, | |
"description": { | |
"purpose": "This field is used for: ...", | |
"restriction": "max length, min value, explaination of validate " | |
}, | |
"testData": "()=>{return almostRandom('Test Org ') + (new Date()/1); }" | |
} | |
}, | |
"options": { | |
"documentation": "some document stuff goes here", | |
"timestamps": true, | |
"collection": "organizations", | |
"writeConcern": { | |
"w": 1, | |
"j": false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment