diff --git a/common/models/User-Credential.json b/common/models/User-Credential.json index 15a271faa4..b3ed7d7e48 100644 --- a/common/models/User-Credential.json +++ b/common/models/User-Credential.json @@ -12,5 +12,5 @@ } }, "acls": [], - "methods": [] + "methods": {} } diff --git a/common/models/User-Identity.json b/common/models/User-Identity.json index 79c2192f1c..3288b92b81 100644 --- a/common/models/User-Identity.json +++ b/common/models/User-Identity.json @@ -19,5 +19,5 @@ "permission": "DENY" } ], - "methods": [] + "methods": {} } diff --git a/common/models/challenge.json b/common/models/challenge.json index 4f62940223..59a73ce7d7 100644 --- a/common/models/challenge.json +++ b/common/models/challenge.json @@ -65,18 +65,18 @@ }, "head": { "type": "array", - "default": [], - "description": "appended to user code" + "description": "appended to user code", + "default": [] }, "tail": { "type": "array", - "default": [], - "description": "prepended to user code" + "description": "prepended to user code", + "default": [] }, "helpRoom": { "type": "string", - "default": "Help", - "description": "Gitter help chatroom this challenge belongs too. Must be PascalCase" + "description": "Gitter help chatroom this challenge belongs too. Must be PascalCase", + "default": "Help" }, "fileName": { "type": "string", @@ -145,5 +145,5 @@ "permission": "ALLOW" } ], - "methods": [] + "methods": {} } diff --git a/common/models/job.json b/common/models/job.json index 35191deaf8..cc5cfd8d8d 100644 --- a/common/models/job.json +++ b/common/models/job.json @@ -71,23 +71,23 @@ }, "isFrontEndCert": { "type": "boolean", - "defaut": false, - "description": "Camper must be front end certified to apply" + "description": "Camper must be front end certified to apply", + "defaut": false }, "isBackEndCert": { "type": "boolean", - "default": false, - "description": "Camper must be back end certified to apply" + "description": "Camper must be back end certified to apply", + "default": false }, "isFullStackCert": { "type": "boolean", - "default": false, - "description": "Camper must be full stack certified to apply" + "description": "Camper must be full stack certified to apply", + "default": false }, "isRemoteOk": { "type": "boolean", - "default": false, - "description": "Camper may work remotely" + "description": "Camper may work remotely", + "default": false }, "howToApply": { "type": "string", @@ -115,5 +115,5 @@ "permission": "ALLOW" } ], - "methods": [] + "methods": {} } diff --git a/common/models/nonprofit.json b/common/models/nonprofit.json index d83bd55739..723157e9d8 100644 --- a/common/models/nonprofit.json +++ b/common/models/nonprofit.json @@ -64,5 +64,5 @@ "permission": "ALLOW" } ], - "methods": [] + "methods": {} } diff --git a/common/models/pledge.json b/common/models/pledge.json index 08e46df414..f63ea4abf5 100644 --- a/common/models/pledge.json +++ b/common/models/pledge.json @@ -51,5 +51,5 @@ "permission": "ALLOW" } ], - "methods": [] + "methods": {} } diff --git a/common/models/promo.json b/common/models/promo.json index 8cab2c27c4..71ba6849f0 100644 --- a/common/models/promo.json +++ b/common/models/promo.json @@ -55,5 +55,5 @@ "property": "getButton" } ], - "methods": [] + "methods": {} } diff --git a/common/models/story.json b/common/models/story.json index d338199a48..dd8650fba6 100644 --- a/common/models/story.json +++ b/common/models/story.json @@ -77,5 +77,5 @@ "property": "create" } ], - "methods": [] + "methods": {} } diff --git a/common/models/user.json b/common/models/user.json index 225f58a78c..9342b5cdb5 100644 --- a/common/models/user.json +++ b/common/models/user.json @@ -2,8 +2,8 @@ "name": "user", "base": "User", "strict": true, - "emailVerificationRequired": false, "idInjection": true, + "emailVerificationRequired": false, "trackChanges": false, "properties": { "email": { @@ -28,13 +28,13 @@ }, "isBanned": { "type": "boolean", - "default": false, - "description": "User is banned from posting to camper news" + "description": "User is banned from posting to camper news", + "default": false }, "isCheater": { "type": "boolean", - "default": false, - "description": "Users who are confirmed to break academic honesty policy are marked as cheaters" + "description": "Users who are confirmed to break academic honesty policy are marked as cheaters", + "default": false }, "isGithubCool": { "type": "boolean", @@ -58,13 +58,13 @@ }, "username": { "type": "string", - "require": true, "index": { "mongodb": { "unique": true, "background": true } - } + }, + "require": true }, "bio": { "type": "string", @@ -117,51 +117,51 @@ }, "isLocked": { "type": "boolean", - "default": false, - "description": "Campers profile does not show challenges/certificates to the public" + "description": "Campers profile does not show challenges/certificates to the public", + "default": false }, "currentChallenge": { "type": {} }, "isUniqMigrated": { "type": "boolean", - "default": false, - "description": "Campers completedChallenges array is free of duplicates" + "description": "Campers completedChallenges array is free of duplicates", + "default": false }, "isHonest": { "type": "boolean", - "default": false, - "description": "Camper has signed academic honesty policy" + "description": "Camper has signed academic honesty policy", + "default": false }, "isFrontEndCert": { "type": "boolean", - "defaut": false, - "description": "Camper is front end certified" + "description": "Camper is front end certified", + "defaut": false }, "isDataVisCert": { "type": "boolean", - "defaut": false, - "description": "Camper is data visualization certified" + "description": "Camper is data visualization certified", + "defaut": false }, "isBackEndCert": { "type": "boolean", - "default": false, - "description": "Campers is back end certified" + "description": "Campers is back end certified", + "default": false }, "isFullStackCert": { "type": "boolean", - "default": false, - "description": "Campers is full stack certified" + "description": "Campers is full stack certified", + "default": false }, "isChallengeMapMigrated": { "type": "boolean", - "default": false, - "description": "Migrate completedChallenges array to challenge map" + "description": "Migrate completedChallenges array to challenge map", + "default": false }, "challengeMap": { "type": "object", - "default": {}, - "description": "A map by id of all the user completed challenges" + "description": "A map by id of all the user completed challenges", + "default": {} }, "completedChallenges": { "type": [ @@ -258,5 +258,5 @@ "property": "updateTheme" } ], - "methods": [] + "methods": {} } diff --git a/server/middleware.json b/server/middleware.json index 1ee88d4cb6..5732969e4e 100644 --- a/server/middleware.json +++ b/server/middleware.json @@ -24,12 +24,12 @@ "auth:before": { "./middlewares/add-return-to": {} }, - "auth": { - }, "parse": { "body-parser#json": {}, "body-parser#urlencoded": { - "params": { "extended": true } + "params": { + "extended": true + } }, "method-override": {}, "./middlewares/cookie-parser": {} @@ -52,12 +52,7 @@ "./middlewares/migrate-completed-challenges": {}, "./middlewares/flash-cheaters": {} }, - "routes": { - }, - "files": { - }, - "final": { - }, + "files": {}, "final:after": { "./middlewares/keymetrics": {}, "./middlewares/error-handlers": {}