Normalize model json using generator loopback
This commit is contained in:
@ -12,5 +12,5 @@
|
||||
}
|
||||
},
|
||||
"acls": [],
|
||||
"methods": []
|
||||
"methods": {}
|
||||
}
|
||||
|
@ -19,5 +19,5 @@
|
||||
"permission": "DENY"
|
||||
}
|
||||
],
|
||||
"methods": []
|
||||
"methods": {}
|
||||
}
|
||||
|
@ -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": {}
|
||||
}
|
||||
|
@ -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": {}
|
||||
}
|
||||
|
@ -64,5 +64,5 @@
|
||||
"permission": "ALLOW"
|
||||
}
|
||||
],
|
||||
"methods": []
|
||||
"methods": {}
|
||||
}
|
||||
|
@ -51,5 +51,5 @@
|
||||
"permission": "ALLOW"
|
||||
}
|
||||
],
|
||||
"methods": []
|
||||
"methods": {}
|
||||
}
|
||||
|
@ -55,5 +55,5 @@
|
||||
"property": "getButton"
|
||||
}
|
||||
],
|
||||
"methods": []
|
||||
"methods": {}
|
||||
}
|
||||
|
@ -77,5 +77,5 @@
|
||||
"property": "create"
|
||||
}
|
||||
],
|
||||
"methods": []
|
||||
"methods": {}
|
||||
}
|
||||
|
@ -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": {}
|
||||
}
|
||||
|
@ -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": {}
|
||||
|
Reference in New Issue
Block a user