Skip to content

Commit 79d28f0

Browse files
authoredFeb 7, 2025··
Merge pull request #4346 from Sander0542/feature/security-schemes-component
API Schema Improvements
2 parents c4df89d + df48b83 commit 79d28f0

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed
 

‎backend/models/dead_host.js

+4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ Model.knex(db);
1212

1313
const boolFields = [
1414
'is_deleted',
15+
'ssl_forced',
16+
'http2_support',
1517
'enabled',
18+
'hsts_enabled',
19+
'hsts_subdomains',
1620
];
1721

1822
class DeadHost extends Model {

‎backend/models/stream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const now = require('./now_helper');
88
Model.knex(db);
99

1010
const boolFields = [
11-
'enabled',
1211
'is_deleted',
12+
'enabled',
1313
'tcp_forwarding',
1414
'udp_forwarding',
1515
];

‎backend/schema/components/proxy-host-object.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
"enabled",
2323
"locations",
2424
"hsts_enabled",
25-
"hsts_subdomains",
26-
"certificate"
25+
"hsts_subdomains"
2726
],
2827
"additionalProperties": false,
2928
"properties": {

‎backend/schema/swagger.json

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
"url": "http://127.0.0.1:81/api"
1010
}
1111
],
12+
"components": {
13+
"securitySchemes": {
14+
"bearerAuth": {
15+
"type": "http",
16+
"scheme": "bearer",
17+
"bearerFormat": "JWT"
18+
}
19+
}
20+
},
1221
"paths": {
1322
"/": {
1423
"get": {

0 commit comments

Comments
 (0)
Please sign in to comment.