Skip to content

Commit 80184b4

Browse files
fix(dav): add missing search_supports_creation_time and search_supports_upload_time to Capabilities return type
Signed-off-by: Cristian Scheid <[email protected]>
1 parent 074df09 commit 80184b4

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

apps/dav/lib/Capabilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
}
2121

2222
/**
23-
* @return array{dav: array{chunking: string, public_shares_chunking: bool, bulkupload?: string, absence-supported?: bool, absence-replacement?: bool}}
23+
* @return array{dav: array{chunking: string, public_shares_chunking: bool, search_supports_creation_time: bool, search_supports_upload_time: bool, bulkupload?: string, absence-supported?: bool, absence-replacement?: bool}}
2424
*/
2525
public function getCapabilities() {
2626
$capabilities = [

apps/dav/openapi.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
"type": "object",
3131
"required": [
3232
"chunking",
33-
"public_shares_chunking"
33+
"public_shares_chunking",
34+
"search_supports_creation_time",
35+
"search_supports_upload_time"
3436
],
3537
"properties": {
3638
"chunking": {
@@ -39,6 +41,12 @@
3941
"public_shares_chunking": {
4042
"type": "boolean"
4143
},
44+
"search_supports_creation_time": {
45+
"type": "boolean"
46+
},
47+
"search_supports_upload_time": {
48+
"type": "boolean"
49+
},
4250
"bulkupload": {
4351
"type": "string"
4452
},

apps/dav/tests/unit/CapabilitiesTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function testGetCapabilities(): void {
3131
'dav' => [
3232
'chunking' => '1.0',
3333
'public_shares_chunking' => true,
34+
'search_supports_creation_time' => true,
35+
'search_supports_upload_time' => true,
3436
],
3537
];
3638
$this->assertSame($expected, $capabilities->getCapabilities());
@@ -51,6 +53,8 @@ public function testGetCapabilitiesWithBulkUpload(): void {
5153
'dav' => [
5254
'chunking' => '1.0',
5355
'public_shares_chunking' => true,
56+
'search_supports_creation_time' => true,
57+
'search_supports_upload_time' => true,
5458
'bulkupload' => '1.0',
5559
],
5660
];
@@ -72,6 +76,8 @@ public function testGetCapabilitiesWithAbsence(): void {
7276
'dav' => [
7377
'chunking' => '1.0',
7478
'public_shares_chunking' => true,
79+
'search_supports_creation_time' => true,
80+
'search_supports_upload_time' => true,
7581
'absence-supported' => true,
7682
'absence-replacement' => true,
7783
],

openapi.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,9 @@
15041504
"type": "object",
15051505
"required": [
15061506
"chunking",
1507-
"public_shares_chunking"
1507+
"public_shares_chunking",
1508+
"search_supports_creation_time",
1509+
"search_supports_upload_time"
15081510
],
15091511
"properties": {
15101512
"chunking": {
@@ -1513,6 +1515,12 @@
15131515
"public_shares_chunking": {
15141516
"type": "boolean"
15151517
},
1518+
"search_supports_creation_time": {
1519+
"type": "boolean"
1520+
},
1521+
"search_supports_upload_time": {
1522+
"type": "boolean"
1523+
},
15161524
"bulkupload": {
15171525
"type": "string"
15181526
},

0 commit comments

Comments
 (0)