1 | {
|
2 | "$id": "regenerate-token",
|
3 | "type": "object",
|
4 | "oneOf": [
|
5 | {
|
6 | "required": [
|
7 | "uid",
|
8 | "challengeType"
|
9 | ]
|
10 | },
|
11 | {
|
12 | "required": [
|
13 | "action",
|
14 | "id",
|
15 | "challengeType"
|
16 | ]
|
17 | }
|
18 | ],
|
19 | "properties": {
|
20 | "uid": {
|
21 | "type": "string",
|
22 | "description": "Token unique identificator"
|
23 | },
|
24 | "action": {
|
25 | "type": "string",
|
26 | "enum": [
|
27 | "activate",
|
28 | "invite",
|
29 | "reset"
|
30 | ],
|
31 | "description": "User action"
|
32 | },
|
33 | "id": {
|
34 | "type": "string",
|
35 | "description": "User identificator"
|
36 | },
|
37 | "challengeType": {
|
38 | "default": "email",
|
39 | "$ref": "common.json#/definitions/challengeType"
|
40 | }
|
41 | }
|
42 | } |
\ | No newline at end of file |