2015-06-02 23:57:57 +00:00
|
|
|
{
|
|
|
|
"name": "challenge",
|
|
|
|
"base": "PersistedModel",
|
|
|
|
"idInjection": true,
|
2015-06-11 06:59:42 +00:00
|
|
|
"trackChanges": false,
|
2015-06-02 23:57:57 +00:00
|
|
|
"properties": {
|
2015-08-11 21:49:57 +00:00
|
|
|
"id": {
|
|
|
|
"type": "string",
|
|
|
|
"id": true
|
|
|
|
},
|
2015-06-02 23:57:57 +00:00
|
|
|
"name": {
|
|
|
|
"type": "string",
|
2015-08-06 02:08:25 +00:00
|
|
|
"index": {
|
|
|
|
"mongodb": {
|
|
|
|
"unique": true,
|
|
|
|
"background": true
|
|
|
|
}
|
|
|
|
}
|
2015-06-02 23:57:57 +00:00
|
|
|
},
|
2015-07-14 01:30:51 +00:00
|
|
|
"title": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2015-08-08 06:37:32 +00:00
|
|
|
"type": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2015-08-09 14:40:16 +00:00
|
|
|
"order": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2015-08-11 06:29:32 +00:00
|
|
|
"suborder": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2016-01-30 08:13:41 +00:00
|
|
|
"checksum": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2015-12-07 06:41:28 +00:00
|
|
|
"isBeta": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Show only during dev or on beta site. Completely omitted otherwise"
|
|
|
|
},
|
|
|
|
"isComingSoon": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Challenge shows in production, but is unreachable and disabled. Is reachable in beta/dev only if isBeta flag is set"
|
|
|
|
},
|
2015-06-14 07:56:47 +00:00
|
|
|
"dashedName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2015-12-05 05:06:36 +00:00
|
|
|
"superBlock": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "Used for ordering challenge blocks in map"
|
|
|
|
},
|
2015-12-07 06:41:28 +00:00
|
|
|
"superOrder": {
|
2015-12-07 05:44:34 +00:00
|
|
|
"type": "number",
|
2015-12-07 06:41:28 +00:00
|
|
|
"description": "Used to determine super block order, set by prepending two digit number to super block folder name"
|
2015-12-07 05:44:34 +00:00
|
|
|
},
|
2015-08-10 05:14:31 +00:00
|
|
|
"block": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2015-06-11 06:59:42 +00:00
|
|
|
"difficulty": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "array"
|
|
|
|
},
|
|
|
|
"tests": {
|
|
|
|
"type": "array"
|
|
|
|
},
|
2015-11-07 00:35:57 +00:00
|
|
|
"head": {
|
|
|
|
"type": "array",
|
|
|
|
"default": [],
|
|
|
|
"description": "appended to user code"
|
|
|
|
},
|
|
|
|
"tail": {
|
|
|
|
"type": "array",
|
|
|
|
"default": [],
|
|
|
|
"description": "prepended to user code"
|
|
|
|
},
|
2016-01-15 08:55:08 +00:00
|
|
|
"helpRoom": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "Help",
|
|
|
|
"description": "Gitter help chatroom this challenge belongs too. Must be PascalCase"
|
|
|
|
},
|
2015-11-10 01:27:56 +00:00
|
|
|
"fileName": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "filename challenge comes from. Used in dev mode"
|
|
|
|
},
|
2015-06-11 06:59:42 +00:00
|
|
|
"challengeSeed": {
|
|
|
|
"type": "array"
|
|
|
|
},
|
|
|
|
"challengeType": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"MDNlinks": {
|
|
|
|
"type": "array"
|
|
|
|
},
|
|
|
|
"nameCn": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"descriptionCn": {
|
|
|
|
"type": "array"
|
|
|
|
},
|
|
|
|
"nameFr": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"descriptionFr": {
|
|
|
|
"type": "array"
|
|
|
|
},
|
|
|
|
"nameRu": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"descriptionRu": {
|
|
|
|
"type": "array"
|
|
|
|
},
|
|
|
|
"nameEs": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"descriptionEs": {
|
|
|
|
"type": "array"
|
|
|
|
},
|
|
|
|
"namePt": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"descriptionPt": {
|
|
|
|
"type": "array"
|
2015-10-21 22:04:58 +00:00
|
|
|
},
|
|
|
|
"solutions": {
|
|
|
|
"type": "array",
|
|
|
|
"default": []
|
2015-11-02 01:26:26 +00:00
|
|
|
},
|
|
|
|
"releasedOn": {
|
|
|
|
"type": "string"
|
2015-06-11 06:59:42 +00:00
|
|
|
}
|
2015-06-02 23:57:57 +00:00
|
|
|
},
|
|
|
|
"validations": [],
|
|
|
|
"relations": {},
|
2015-06-11 06:59:42 +00:00
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "DENY"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
2015-06-24 15:23:49 +00:00
|
|
|
"principalId": "$everyone",
|
2015-06-11 06:59:42 +00:00
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
],
|
2015-06-02 23:57:57 +00:00
|
|
|
"methods": []
|
2015-06-11 06:59:42 +00:00
|
|
|
}
|