Skip to content

Commit a970ab9

Browse files
authored
CORE-2871 Add PermissionManagementRequest schema (#121)
Add a top level schema that will cover all permission management requests by using a union type of the `request` field. Other specific permission management requests can then be added as needed in the future. Move `requestUserId` to this schema as it will be required for all types of requests.
1 parent 2b806f4 commit a970ab9

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"type": "record",
3+
"name": "PermissionManagementRequest",
4+
"namespace": "net.corda.data.permissions.management",
5+
"fields": [
6+
{
7+
"name": "requestUserId",
8+
"type": "string",
9+
"doc": "ID of user who invoked this request."
10+
},
11+
{
12+
"name": "virtualNodeId",
13+
"type": [
14+
"null",
15+
"string"
16+
],
17+
"doc": "ID of virtual node or null"
18+
},
19+
{
20+
"name": "request",
21+
"type": [
22+
"net.corda.data.permissions.management.user.CreateUserRequest"
23+
]
24+
}
25+
]
26+
}

data/avro-schema/src/main/resources/avro/net/corda/data/permissions/management/user/CreateUserRequest.avsc

-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@
3838
{
3939
"name": "parentGroupId",
4040
"type": [ "null", "string" ]
41-
},
42-
{
43-
"name": "requestUserId",
44-
"type": "string",
45-
"doc": "ID of user who invoked this request."
4641
}
4742
]
4843
}

0 commit comments

Comments
 (0)