Skip to content

Commit 96d423c

Browse files
committed
chore: update openAPI files
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 495c364 commit 96d423c

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

apps/files_sharing/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@
14921492
}
14931493
},
14941494
{
1495-
"name": "X-NC-Preview",
1495+
"name": "x-nc-preview",
14961496
"in": "header",
14971497
"schema": {
14981498
"type": "string"

apps/webhook_listeners/openapi.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
},
257257
"parameters": [
258258
{
259-
"name": "EX-APP-ID",
259+
"name": "ex-app-id",
260260
"in": "header",
261261
"schema": {
262262
"type": "string"
@@ -556,7 +556,7 @@
556556
}
557557
},
558558
{
559-
"name": "EX-APP-ID",
559+
"name": "ex-app-id",
560560
"in": "header",
561561
"schema": {
562562
"type": "string"
@@ -809,7 +809,7 @@
809809
{
810810
"name": "appid",
811811
"in": "path",
812-
"description": "id of the app, as in the EX-APP-ID for creation",
812+
"description": "id of the app, as in the ex-app-id for creation",
813813
"required": true,
814814
"schema": {
815815
"type": "string"

core/openapi-full.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@
11731173
],
11741174
"parameters": [
11751175
{
1176-
"name": "USER_AGENT",
1176+
"name": "user-agent",
11771177
"in": "header",
11781178
"schema": {
11791179
"type": "string"
@@ -8066,7 +8066,7 @@
80668066
],
80678067
"parameters": [
80688068
{
8069-
"name": "USER_AGENT",
8069+
"name": "user-agent",
80708070
"in": "header",
80718071
"schema": {
80728072
"type": "string"

core/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@
11731173
],
11741174
"parameters": [
11751175
{
1176-
"name": "USER_AGENT",
1176+
"name": "user-agent",
11771177
"in": "header",
11781178
"schema": {
11791179
"type": "string"
@@ -8066,7 +8066,7 @@
80668066
],
80678067
"parameters": [
80688068
{
8069-
"name": "USER_AGENT",
8069+
"name": "user-agent",
80708070
"in": "header",
80718071
"schema": {
80728072
"type": "string"

openapi.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4645,7 +4645,7 @@
46454645
],
46464646
"parameters": [
46474647
{
4648-
"name": "USER_AGENT",
4648+
"name": "user-agent",
46494649
"in": "header",
46504650
"schema": {
46514651
"type": "string"
@@ -11585,7 +11585,7 @@
1158511585
],
1158611586
"parameters": [
1158711587
{
11588-
"name": "USER_AGENT",
11588+
"name": "user-agent",
1158911589
"in": "header",
1159011590
"schema": {
1159111591
"type": "string"
@@ -19842,7 +19842,7 @@
1984219842
}
1984319843
},
1984419844
{
19845-
"name": "X-NC-Preview",
19845+
"name": "x-nc-preview",
1984619846
"in": "header",
1984719847
"schema": {
1984819848
"type": "string"
@@ -30808,7 +30808,7 @@
3080830808
},
3080930809
"parameters": [
3081030810
{
30811-
"name": "EX-APP-ID",
30811+
"name": "ex-app-id",
3081230812
"in": "header",
3081330813
"schema": {
3081430814
"type": "string"
@@ -31108,7 +31108,7 @@
3110831108
}
3110931109
},
3111031110
{
31111-
"name": "EX-APP-ID",
31111+
"name": "ex-app-id",
3111231112
"in": "header",
3111331113
"schema": {
3111431114
"type": "string"
@@ -31361,7 +31361,7 @@
3136131361
{
3136231362
"name": "appid",
3136331363
"in": "path",
31364-
"description": "id of the app, as in the EX-APP-ID for creation",
31364+
"description": "id of the app, as in the ex-app-id for creation",
3136531365
"required": true,
3136631366
"schema": {
3136731367
"type": "string"

tests/Core/Controller/AppPasswordControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function testGetAppPassword(): void {
123123
$credentials->method('getLoginName')
124124
->willReturn('myLoginName');
125125
$this->request->method('getHeader')
126-
->with('USER_AGENT')
126+
->with('user-agent')
127127
->willReturn('myUA');
128128
$this->random->method('generate')
129129
->with(
@@ -164,7 +164,7 @@ public function testGetAppPasswordNoPassword(): void {
164164
$credentials->method('getLoginName')
165165
->willReturn('myLoginName');
166166
$this->request->method('getHeader')
167-
->with('USER_AGENT')
167+
->with('user-agent')
168168
->willReturn('myUA');
169169
$this->random->method('generate')
170170
->with(

tests/Core/Controller/ClientFlowLoginControllerTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testShowAuthPickerPageWithOcsHeader(): void {
119119
$this->request
120120
->method('getHeader')
121121
->willReturnMap([
122-
['USER_AGENT', 'Mac OS X Sync Client'],
122+
['user-agent', 'Mac OS X Sync Client'],
123123
['OCS-APIREQUEST', 'true'],
124124
]);
125125
$this->random
@@ -178,7 +178,7 @@ public function testShowAuthPickerPageWithOauth(): void {
178178
$this->request
179179
->method('getHeader')
180180
->willReturnMap([
181-
['USER_AGENT', 'Mac OS X Sync Client'],
181+
['user-agent', 'Mac OS X Sync Client'],
182182
['OCS-APIREQUEST', 'false'],
183183
]);
184184
$client = new Client();
@@ -555,7 +555,7 @@ public static function dataGeneratePasswordWithHttpsProxy(): array {
555555
[
556556
['X-Forwarded-Proto', 'http'],
557557
['X-Forwarded-Ssl', 'off'],
558-
['USER_AGENT', ''],
558+
['user-agent', ''],
559559
],
560560
'http',
561561
'http',
@@ -564,7 +564,7 @@ public static function dataGeneratePasswordWithHttpsProxy(): array {
564564
[
565565
['X-Forwarded-Proto', 'http'],
566566
['X-Forwarded-Ssl', 'off'],
567-
['USER_AGENT', ''],
567+
['user-agent', ''],
568568
],
569569
'https',
570570
'https',
@@ -573,7 +573,7 @@ public static function dataGeneratePasswordWithHttpsProxy(): array {
573573
[
574574
['X-Forwarded-Proto', 'https'],
575575
['X-Forwarded-Ssl', 'off'],
576-
['USER_AGENT', ''],
576+
['user-agent', ''],
577577
],
578578
'http',
579579
'https',
@@ -582,7 +582,7 @@ public static function dataGeneratePasswordWithHttpsProxy(): array {
582582
[
583583
['X-Forwarded-Proto', 'https'],
584584
['X-Forwarded-Ssl', 'on'],
585-
['USER_AGENT', ''],
585+
['user-agent', ''],
586586
],
587587
'http',
588588
'https',
@@ -591,7 +591,7 @@ public static function dataGeneratePasswordWithHttpsProxy(): array {
591591
[
592592
['X-Forwarded-Proto', 'http'],
593593
['X-Forwarded-Ssl', 'on'],
594-
['USER_AGENT', ''],
594+
['user-agent', ''],
595595
],
596596
'http',
597597
'https',

tests/Core/Controller/PreviewControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function testFileWithoutDownloadPermissionButHeader() {
265265

266266
$this->request
267267
->method('getHeader')
268-
->with('X-NC-Preview')
268+
->with('x-nc-preview')
269269
->willReturn('true');
270270

271271
$preview = $this->createMock(ISimpleFile::class);

0 commit comments

Comments
 (0)