UNPKG

1.09 kBJSONView Raw
1{
2 "$id": "getMetadata",
3 "type": "object",
4 "required": [
5 "username",
6 "audience"
7 ],
8 "properties": {
9 "username": {
10 "anyOf": [{
11 "type": "string",
12 "minLength": 1,
13 "maxLength": 50
14 }, {
15 "type": "array",
16 "minItems": 1,
17 "uniqueItems": true,
18 "items": {
19 "type": "string",
20 "minLength": 1,
21 "maxLength": 50
22 }
23 }]
24 },
25 "public": {
26 "type": "boolean"
27 },
28 "audience": {
29 "anyOf": [{
30 "type": "string",
31 "minLength": 1
32 }, {
33 "type": "array",
34 "items": {
35 "type": "string",
36 "minLength": 1
37 },
38 "minItems": 1
39 }]
40 },
41 "includingBanned": {
42 "type": "boolean",
43 "default": true
44 },
45 "fields": {
46 "type": "object",
47 "minProperties": 1,
48 "additionalProperties": {
49 "type": "array",
50 "minItems": 1,
51 "uniqueItems": true,
52 "items": {
53 "type": "string",
54 "minLength": 1
55 }
56 }
57 }
58 }
59}