Skip to content

Commit

Permalink
Merge pull request #1686 from nextcloud/update/openapi-extractor
Browse files Browse the repository at this point in the history
Update openapi-extractor
  • Loading branch information
provokateurin authored Oct 10, 2023
2 parents 5e423cc + cd35c5c commit 12a4551
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 34 deletions.
4 changes: 4 additions & 0 deletions lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public function __construct(string $appName,
* @param string $soundNotification Enable sound for notifications ('yes' or 'no')
* @param string $soundTalk Enable sound for Talk notifications ('yes' or 'no')
* @return DataResponse<Http::STATUS_OK, array<empty>, array{}>
*
* 200: Personal settings updated
*/
public function personal(int $batchSetting, string $soundNotification, string $soundTalk): DataResponse {
$this->settingsMapper->setBatchSettingForUser($this->userId, $batchSetting);
Expand All @@ -78,6 +80,8 @@ public function personal(int $batchSetting, string $soundNotification, string $s
* @param string $soundNotification Enable sound for notifications ('yes' or 'no')
* @param string $soundTalk Enable sound for Talk notifications ('yes' or 'no')
* @return DataResponse<Http::STATUS_OK, array<empty>, array{}>
*
* 200: Admin settings updated
*/
public function admin(int $batchSetting, string $soundNotification, string $soundTalk): DataResponse {
$this->config->setAppValue(Application::APP_ID, 'setting_batchtime', (string) $batchSetting);
Expand Down
54 changes: 32 additions & 22 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
Expand Down Expand Up @@ -351,10 +352,11 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
Expand Down Expand Up @@ -463,10 +465,11 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
Expand Down Expand Up @@ -574,10 +577,11 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
Expand Down Expand Up @@ -719,10 +723,11 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
Expand Down Expand Up @@ -856,10 +861,11 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
Expand Down Expand Up @@ -1022,10 +1028,11 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
Expand Down Expand Up @@ -1215,10 +1222,11 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
Expand Down Expand Up @@ -1403,16 +1411,17 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "",
"description": "Personal settings updated",
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -1502,16 +1511,17 @@
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string",
"default": "true"
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "",
"description": "Admin settings updated",
"content": {
"application/json": {
"schema": {
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/openapi-extractor/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
}
},
"require": {
"nextcloud/openapi-extractor": "dev-main#85b552a0c82ac71e1f5660109113b6235156e92e"
"nextcloud/openapi-extractor": "dev-main"
}
}
22 changes: 11 additions & 11 deletions vendor-bin/openapi-extractor/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12a4551

Please sign in to comment.