Bug 16699: Support multiple types in primitive definitions
[koha.git] / api / v1 / x-primitives.json
1 {
2   "biblionumber": {
3     "type": "string",
4     "description": "internally assigned biblio identifier"
5   },
6   "borrowernumber": {
7     "type": "string",
8     "description": "internally assigned user identifier"
9   },
10   "branchcode": {
11     "type": ["string", "null"],
12     "description": "code of patron's home branch"
13   },
14   "cardnumber": {
15     "type": ["string", "null"],
16     "description": "library assigned user identifier"
17   },
18   "email": {
19     "type": ["string", "null"],
20     "description": "primary email address for patron's primary address"
21   },
22   "firstname": {
23     "type": ["string", "null"],
24     "description": "patron's first name"
25   },
26   "itemnumber": {
27     "type": ["string", "null"],
28     "description": "internally assigned item identifier"
29   },
30   "phone": {
31     "type": ["string", "null"],
32     "description": "primary phone number for patron's primary address"
33   },
34   "reserve_id": {
35     "description": "Internal hold identifier"
36   },
37   "surname": {
38     "type": "string",
39     "description": "patron's last name"
40   }
41 }