UNPKG

1.23 kBJSONView Raw
1{
2 "$id": "login",
3 "type": "object",
4 "required": [
5 "username",
6 "audience"
7 ],
8 "properties": {
9 "username": {
10 "type": "string",
11 "minLength": 3,
12 "maxLength": 50
13 },
14 "password": {
15 "type": "string",
16 "minLength": 1
17 },
18 "audience": {
19 "type": "string",
20 "minLength": 1
21 },
22 "remoteip": {
23 "type": "string",
24 "format": "ipv4"
25 },
26 "isDisposablePassword": {
27 "default": false,
28 "type": "boolean"
29 },
30 "isSSO": {
31 "default": false,
32 "type": "boolean"
33 },
34 "isOAuthFollowUp": {
35 "default": false,
36 "type": "boolean"
37 }
38 },
39 "if": {
40 "required": ["isOAuthFollowUp"],
41 "properties": { "isOAuthFollowUp": { "const": true } }
42 },
43 "then": {
44 "required": ["password"],
45 "properties": {
46 "password": {
47 "maxLength": 8192
48 }
49 }
50 },
51 "else": {
52 "properties": {
53 "password": {
54 "maxLength": 50
55 }
56 }
57 }
58}