aboutsummaryrefslogtreecommitdiff
path: root/campusconnect/schemas/cc_course_members.schema.json
blob: 26b912befdf950e7fad8303ca652fe7c767cb467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  "$schema": "http://json-schema.org/draft-03/schema#",
  "description":"Data schema for JSON representation of CampusConnect course_members resource",
  "type":"object",
  "properties": {
    "lectureID": {"type":"string", "required":true},
    "members": {
      "type":"array",
      "items": {
        "type":"object",
        "properties": {
          "personID": {"type":"string", "required":true},
          "personIDtype": { "enum": [ "ecs_ePPN", "ecs_loginUID", "ecs_login", "ecs_uid", "ecs_email", "ecs_PersonalUniqueCode", "ecs_custom" ], "required":false },
          "role": {"type":"integer", "required":true},
          "groups": {
            "type":"array",
            "items": {
              "type":"object",
              "properties": {
                "num": {"type":"integer", "required":true},
                "role": {"type":"integer"}
              },
              "additionalProperties" : false
            }
          }
        },
        "additionalProperties" : false
      }
    }
  },
  "additionalProperties" : false
}