Skip to content

Commit 5163bac

Browse files
committed
fix: Access list object owner, items and clients
1 parent 13fa259 commit 5163bac

File tree

2 files changed

+105
-1
lines changed

2 files changed

+105
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "array",
3+
"description": "Access list list",
4+
"items": {
5+
"$ref": "./access-list-object.json"
6+
}
7+
}

backend/schema/components/access-list-object.json

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
{
22
"type": "object",
33
"description": "Access List object",
4-
"required": ["id", "created_on", "modified_on", "owner_user_id", "name", "meta", "satisfy_any", "pass_auth", "proxy_host_count"],
4+
"required": [
5+
"id",
6+
"created_on",
7+
"modified_on",
8+
"owner_user_id",
9+
"name",
10+
"meta",
11+
"satisfy_any",
12+
"pass_auth",
13+
"proxy_host_count"
14+
],
515
"properties": {
616
"id": {
717
"$ref": "../common.json#/properties/id"
@@ -36,6 +46,93 @@
3646
"type": "integer",
3747
"minimum": 0,
3848
"example": 3
49+
},
50+
"owner": {
51+
"$ref": "./user-object.json"
52+
},
53+
"items": {
54+
"type": "array",
55+
"minItems": 0,
56+
"items": {
57+
"type": "object",
58+
"required": [
59+
"id",
60+
"created_on",
61+
"modified_on",
62+
"access_list_id",
63+
"username",
64+
"password",
65+
"hint",
66+
"meta"
67+
],
68+
"additionalProperties": false,
69+
"properties": {
70+
"id": {
71+
"$ref": "../common.json#/properties/id"
72+
},
73+
"created_on": {
74+
"$ref": "../common.json#/properties/created_on"
75+
},
76+
"modified_on": {
77+
"$ref": "../common.json#/properties/modified_on"
78+
},
79+
"access_list_id": {
80+
"$ref": "../common.json#/properties/access_list_id"
81+
},
82+
"username": {
83+
"$ref": "../common.json#/properties/authorization_username"
84+
},
85+
"password": {
86+
"$ref": "../common.json#/properties/authorization_password"
87+
},
88+
"hint": {
89+
"$ref": "../common.json#/properties/authorization_hint"
90+
},
91+
"meta": {
92+
"type": "object"
93+
}
94+
}
95+
}
96+
},
97+
"clients": {
98+
"type": "array",
99+
"minItems": 0,
100+
"items": {
101+
"type": "object",
102+
"required": [
103+
"id",
104+
"created_on",
105+
"modified_on",
106+
"access_list_id",
107+
"address",
108+
"directive",
109+
"meta"
110+
],
111+
"additionalProperties": false,
112+
"properties": {
113+
"id": {
114+
"$ref": "../common.json#/properties/id"
115+
},
116+
"created_on": {
117+
"$ref": "../common.json#/properties/created_on"
118+
},
119+
"modified_on": {
120+
"$ref": "../common.json#/properties/modified_on"
121+
},
122+
"access_list_id": {
123+
"$ref": "../common.json#/properties/access_list_id"
124+
},
125+
"address": {
126+
"$ref": "../common.json#/properties/access_address"
127+
},
128+
"directive": {
129+
"$ref": "../common.json#/properties/access_directive"
130+
},
131+
"meta": {
132+
"type": "object"
133+
}
134+
}
135+
}
39136
}
40137
}
41138
}

0 commit comments

Comments
 (0)