Normalize model json using generator loopback
This commit is contained in:
@ -12,5 +12,5 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acls": [],
|
"acls": [],
|
||||||
"methods": []
|
"methods": {}
|
||||||
}
|
}
|
||||||
|
@ -19,5 +19,5 @@
|
|||||||
"permission": "DENY"
|
"permission": "DENY"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"methods": []
|
"methods": {}
|
||||||
}
|
}
|
||||||
|
@ -65,18 +65,18 @@
|
|||||||
},
|
},
|
||||||
"head": {
|
"head": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"description": "appended to user code",
|
||||||
"description": "appended to user code"
|
"default": []
|
||||||
},
|
},
|
||||||
"tail": {
|
"tail": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"description": "prepended to user code",
|
||||||
"description": "prepended to user code"
|
"default": []
|
||||||
},
|
},
|
||||||
"helpRoom": {
|
"helpRoom": {
|
||||||
"type": "string",
|
"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": {
|
"fileName": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -145,5 +145,5 @@
|
|||||||
"permission": "ALLOW"
|
"permission": "ALLOW"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"methods": []
|
"methods": {}
|
||||||
}
|
}
|
||||||
|
@ -71,23 +71,23 @@
|
|||||||
},
|
},
|
||||||
"isFrontEndCert": {
|
"isFrontEndCert": {
|
||||||
"type": "boolean",
|
"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": {
|
"isBackEndCert": {
|
||||||
"type": "boolean",
|
"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": {
|
"isFullStackCert": {
|
||||||
"type": "boolean",
|
"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": {
|
"isRemoteOk": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"description": "Camper may work remotely",
|
||||||
"description": "Camper may work remotely"
|
"default": false
|
||||||
},
|
},
|
||||||
"howToApply": {
|
"howToApply": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -115,5 +115,5 @@
|
|||||||
"permission": "ALLOW"
|
"permission": "ALLOW"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"methods": []
|
"methods": {}
|
||||||
}
|
}
|
||||||
|
@ -64,5 +64,5 @@
|
|||||||
"permission": "ALLOW"
|
"permission": "ALLOW"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"methods": []
|
"methods": {}
|
||||||
}
|
}
|
||||||
|
@ -51,5 +51,5 @@
|
|||||||
"permission": "ALLOW"
|
"permission": "ALLOW"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"methods": []
|
"methods": {}
|
||||||
}
|
}
|
||||||
|
@ -55,5 +55,5 @@
|
|||||||
"property": "getButton"
|
"property": "getButton"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"methods": []
|
"methods": {}
|
||||||
}
|
}
|
||||||
|
@ -77,5 +77,5 @@
|
|||||||
"property": "create"
|
"property": "create"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"methods": []
|
"methods": {}
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"name": "user",
|
"name": "user",
|
||||||
"base": "User",
|
"base": "User",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"emailVerificationRequired": false,
|
|
||||||
"idInjection": true,
|
"idInjection": true,
|
||||||
|
"emailVerificationRequired": false,
|
||||||
"trackChanges": false,
|
"trackChanges": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"email": {
|
"email": {
|
||||||
@ -28,13 +28,13 @@
|
|||||||
},
|
},
|
||||||
"isBanned": {
|
"isBanned": {
|
||||||
"type": "boolean",
|
"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": {
|
"isCheater": {
|
||||||
"type": "boolean",
|
"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": {
|
"isGithubCool": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@ -58,13 +58,13 @@
|
|||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"require": true,
|
|
||||||
"index": {
|
"index": {
|
||||||
"mongodb": {
|
"mongodb": {
|
||||||
"unique": true,
|
"unique": true,
|
||||||
"background": true
|
"background": true
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"require": true
|
||||||
},
|
},
|
||||||
"bio": {
|
"bio": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -117,51 +117,51 @@
|
|||||||
},
|
},
|
||||||
"isLocked": {
|
"isLocked": {
|
||||||
"type": "boolean",
|
"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": {
|
"currentChallenge": {
|
||||||
"type": {}
|
"type": {}
|
||||||
},
|
},
|
||||||
"isUniqMigrated": {
|
"isUniqMigrated": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"description": "Campers completedChallenges array is free of duplicates",
|
||||||
"description": "Campers completedChallenges array is free of duplicates"
|
"default": false
|
||||||
},
|
},
|
||||||
"isHonest": {
|
"isHonest": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"description": "Camper has signed academic honesty policy",
|
||||||
"description": "Camper has signed academic honesty policy"
|
"default": false
|
||||||
},
|
},
|
||||||
"isFrontEndCert": {
|
"isFrontEndCert": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"defaut": false,
|
"description": "Camper is front end certified",
|
||||||
"description": "Camper is front end certified"
|
"defaut": false
|
||||||
},
|
},
|
||||||
"isDataVisCert": {
|
"isDataVisCert": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"defaut": false,
|
"description": "Camper is data visualization certified",
|
||||||
"description": "Camper is data visualization certified"
|
"defaut": false
|
||||||
},
|
},
|
||||||
"isBackEndCert": {
|
"isBackEndCert": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"description": "Campers is back end certified",
|
||||||
"description": "Campers is back end certified"
|
"default": false
|
||||||
},
|
},
|
||||||
"isFullStackCert": {
|
"isFullStackCert": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"description": "Campers is full stack certified",
|
||||||
"description": "Campers is full stack certified"
|
"default": false
|
||||||
},
|
},
|
||||||
"isChallengeMapMigrated": {
|
"isChallengeMapMigrated": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"description": "Migrate completedChallenges array to challenge map",
|
||||||
"description": "Migrate completedChallenges array to challenge map"
|
"default": false
|
||||||
},
|
},
|
||||||
"challengeMap": {
|
"challengeMap": {
|
||||||
"type": "object",
|
"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": {
|
"completedChallenges": {
|
||||||
"type": [
|
"type": [
|
||||||
@ -258,5 +258,5 @@
|
|||||||
"property": "updateTheme"
|
"property": "updateTheme"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"methods": []
|
"methods": {}
|
||||||
}
|
}
|
||||||
|
@ -24,12 +24,12 @@
|
|||||||
"auth:before": {
|
"auth:before": {
|
||||||
"./middlewares/add-return-to": {}
|
"./middlewares/add-return-to": {}
|
||||||
},
|
},
|
||||||
"auth": {
|
|
||||||
},
|
|
||||||
"parse": {
|
"parse": {
|
||||||
"body-parser#json": {},
|
"body-parser#json": {},
|
||||||
"body-parser#urlencoded": {
|
"body-parser#urlencoded": {
|
||||||
"params": { "extended": true }
|
"params": {
|
||||||
|
"extended": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"method-override": {},
|
"method-override": {},
|
||||||
"./middlewares/cookie-parser": {}
|
"./middlewares/cookie-parser": {}
|
||||||
@ -52,12 +52,7 @@
|
|||||||
"./middlewares/migrate-completed-challenges": {},
|
"./middlewares/migrate-completed-challenges": {},
|
||||||
"./middlewares/flash-cheaters": {}
|
"./middlewares/flash-cheaters": {}
|
||||||
},
|
},
|
||||||
"routes": {
|
"files": {},
|
||||||
},
|
|
||||||
"files": {
|
|
||||||
},
|
|
||||||
"final": {
|
|
||||||
},
|
|
||||||
"final:after": {
|
"final:after": {
|
||||||
"./middlewares/keymetrics": {},
|
"./middlewares/keymetrics": {},
|
||||||
"./middlewares/error-handlers": {}
|
"./middlewares/error-handlers": {}
|
||||||
|
Reference in New Issue
Block a user