Skip to content

Commit 061c354

Browse files
committed
fix: Common meta object
1 parent 1aadeab commit 061c354

File tree

5 files changed

+26
-11
lines changed

5 files changed

+26
-11
lines changed

backend/schema/common.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@
274274
}
275275
}
276276
}
277+
},
278+
"meta": {
279+
"description": "Meta Information",
280+
"type": "object",
281+
"example": {}
277282
}
278283
}
279284
}

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"example": "My Access List"
3232
},
3333
"meta": {
34-
"type": "object",
35-
"example": {}
34+
"$ref": "../common.json#/properties/meta"
3635
},
3736
"satisfy_any": {
3837
"type": "boolean",
@@ -89,7 +88,7 @@
8988
"$ref": "../common.json#/properties/authorization_hint"
9089
},
9190
"meta": {
92-
"type": "object"
91+
"$ref": "../common.json#/properties/meta"
9392
}
9493
}
9594
}
@@ -129,7 +128,7 @@
129128
"$ref": "../common.json#/properties/access_directive"
130129
},
131130
"meta": {
132-
"type": "object"
131+
"$ref": "../common.json#/properties/meta"
133132
}
134133
}
135134
}

backend/schema/components/audit-log-object.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
"example": "created"
3838
},
3939
"meta": {
40-
"type": "object",
41-
"example": {}
40+
"$ref": "../common.json#/properties/meta"
4241
},
4342
"user": {
4443
"$ref": "./user-object.json"

backend/schema/components/dead-host-object.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
{
22
"type": "object",
33
"description": "404 Host object",
4-
"required": ["id", "created_on", "modified_on", "owner_user_id", "domain_names", "certificate_id", "ssl_forced", "hsts_enabled", "hsts_subdomains", "http2_support", "advanced_config", "enabled", "meta"],
4+
"required": [
5+
"id",
6+
"created_on",
7+
"modified_on",
8+
"owner_user_id",
9+
"domain_names",
10+
"certificate_id",
11+
"ssl_forced",
12+
"hsts_enabled",
13+
"hsts_subdomains",
14+
"http2_support",
15+
"advanced_config",
16+
"enabled",
17+
"meta"
18+
],
519
"additionalProperties": false,
620
"properties": {
721
"id": {
@@ -42,8 +56,7 @@
4256
"$ref": "../common.json#/properties/enabled"
4357
},
4458
"meta": {
45-
"type": "object",
46-
"example": {}
59+
"$ref": "../common.json#/properties/meta"
4760
},
4861
"certificate": {
4962
"oneOf": [

backend/schema/components/stream-object.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@
7474
"$ref": "../common.json#/properties/certificate_id"
7575
},
7676
"meta": {
77-
"type": "object",
78-
"example": {}
77+
"$ref": "../common.json#/properties/meta"
7978
},
8079
"certificate": {
8180
"oneOf": [

0 commit comments

Comments
 (0)