Skip to content

Commit f80c187

Browse files
committed
Fix user and permissions
1 parent ae4d342 commit f80c187

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

backend/schema/components/permission-object.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"type": "object",
3-
"minProperties": 1,
3+
"required": ["visibility", "access_lists", "dead_hosts", "proxy_hosts", "redirection_hosts", "streams", "certificates"],
4+
"additionalProperties": false,
45
"properties": {
56
"visibility": {
67
"type": "string",

backend/schema/components/user-object.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,13 @@
55
"additionalProperties": false,
66
"properties": {
77
"id": {
8-
"type": "integer",
9-
"description": "User ID",
10-
"minimum": 1,
11-
"example": 1
8+
"$ref": "../common.json#/properties/id"
129
},
1310
"created_on": {
14-
"type": "string",
15-
"description": "Created Date",
16-
"example": "2020-01-30T09:36:08.000Z"
11+
"$ref": "../common.json#/properties/created_on"
1712
},
1813
"modified_on": {
19-
"type": "string",
20-
"description": "Modified Date",
21-
"example": "2020-01-30T09:41:04.000Z"
14+
"$ref": "../common.json#/properties/modified_on"
2215
},
2316
"is_disabled": {
2417
"type": "boolean",
@@ -54,6 +47,9 @@
5447
"items": {
5548
"type": "string"
5649
}
50+
},
51+
"permissions": {
52+
"$ref": "./permission-object.json"
5753
}
5854
}
5955
}

0 commit comments

Comments
 (0)