Skip to content

Commit 74b4950

Browse files
committed
fix: Set certificate files format to binary
1 parent d18c8cf commit 74b4950

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

backend/schema/common.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"type": "null"
1717
},
1818
{
19+
"type": "array",
1920
"type": "array",
2021
"minItems": 1,
2122
"items": {
@@ -86,7 +87,10 @@
8687
"type": "string",
8788
"pattern": "^[^&| @!#%^();:/\\\\}{=+?<>,~`'\"]+$"
8889
},
89-
"example": ["example.com", "www.example.com"]
90+
"example": [
91+
"example.com",
92+
"www.example.com"
93+
]
9094
},
9195
"enabled": {
9296
"description": "Is Enabled",
@@ -136,7 +140,10 @@
136140
},
137141
"directive": {
138142
"type": "string",
139-
"enum": ["allow", "deny"],
143+
"enum": [
144+
"allow",
145+
"deny"
146+
],
140147
"example": "allow"
141148
},
142149
"address": {
@@ -214,18 +221,24 @@
214221
"schema": {
215222
"type": "object",
216223
"additionalProperties": false,
217-
"required": ["certificate", "certificate_key"],
224+
"required": [
225+
"certificate",
226+
"certificate_key"
227+
],
218228
"properties": {
219229
"certificate": {
220230
"type": "string",
231+
"format": "binary",
221232
"example": "-----BEGIN CERTIFICATE-----\nMIID...-----END CERTIFICATE-----"
222233
},
223234
"certificate_key": {
224235
"type": "string",
236+
"format": "binary",
225237
"example": "-----BEGIN CERTIFICATE-----\nMIID...-----END CERTIFICATE-----"
226238
},
227239
"intermediate_certificate": {
228240
"type": "string",
241+
"format": "binary",
229242
"example": "-----BEGIN CERTIFICATE-----\nMIID...-----END CERTIFICATE-----"
230243
}
231244
}

0 commit comments

Comments
 (0)