-
Notifications
You must be signed in to change notification settings - Fork 19
/
patron-action-session.json
46 lines (46 loc) · 1.24 KB
/
patron-action-session.json
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"additionalProperties": false,
"description": "Patron action session",
"properties": {
"id": {
"type": "string",
"description": "Patron action session id, UUID",
"$ref": "raml-util/schemas/uuid.schema"
},
"sessionId": {
"type": "string",
"description": "UUID which is the same for all patron action sessions generated in scope of the same check-in/check-out session",
"$ref": "raml-util/schemas/uuid.schema"
},
"patronId": {
"type": "string",
"description": "Patron id",
"$ref": "raml-util/schemas/uuid.schema"
},
"loanId": {
"type": "string",
"description": "Loan id",
"$ref": "raml-util/schemas/uuid.schema"
},
"actionType": {
"type": "string",
"description": "Defines action type",
"enum": [
"Check-out",
"Check-in"
]
},
"metadata": {
"description": "Metadata about creation and changes to patron action session, provided by the server (client should not provide)",
"type": "object",
"$ref": "raml-util/schemas/metadata.schema"
}
},
"required": [
"patronId",
"loanId",
"actionType"
]
}