From 94ebed06814a792491fcbce591521f15f79a50b3 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 9 Jan 2024 18:09:02 +0100 Subject: [PATCH] chore(deps): Update openapi-extractor Signed-off-by: provokateurin --- apps/files/openapi.json | 6 +- apps/files_sharing/openapi.json | 18 +++++- apps/files_trashbin/openapi.json | 6 +- apps/theming/openapi.json | 18 +++++- apps/user_ldap/openapi.json | 6 +- core/openapi.json | 65 ++++++++++++++++++---- vendor-bin/openapi-extractor/composer.lock | 49 ++++++++++------ 7 files changed, 132 insertions(+), 36 deletions(-) diff --git a/apps/files/openapi.json b/apps/files/openapi.json index c897790f20534..4df81800846e2 100644 --- a/apps/files/openapi.json +++ b/apps/files/openapi.json @@ -1172,7 +1172,11 @@ "description": "Whether to copy the system templates to the template directory", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { diff --git a/apps/files_sharing/openapi.json b/apps/files_sharing/openapi.json index bc8128df0d20c..3414c0aa1fd87 100644 --- a/apps/files_sharing/openapi.json +++ b/apps/files_sharing/openapi.json @@ -1483,7 +1483,11 @@ "description": "Whether to not crop the preview", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -2178,7 +2182,11 @@ "description": "Include tags in the share", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -2822,7 +2830,11 @@ "description": "If a global lookup should be performed too", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { diff --git a/apps/files_trashbin/openapi.json b/apps/files_trashbin/openapi.json index a96cf5f189da8..afa0ccfdafd6a 100644 --- a/apps/files_trashbin/openapi.json +++ b/apps/files_trashbin/openapi.json @@ -94,7 +94,11 @@ "description": "Whether to not crop the preview", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } } ], diff --git a/apps/theming/openapi.json b/apps/theming/openapi.json index 7ed98467e962b..f85f916dcaaa7 100644 --- a/apps/theming/openapi.json +++ b/apps/theming/openapi.json @@ -162,7 +162,11 @@ "description": "Let the browser decide the CSS priority", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -171,7 +175,11 @@ "description": "Include custom CSS", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -232,7 +240,11 @@ "description": "Return image as SVG", "schema": { "type": "integer", - "default": 1 + "default": 1, + "enum": [ + 0, + 1 + ] } }, { diff --git a/apps/user_ldap/openapi.json b/apps/user_ldap/openapi.json index f775726c8dcba..fcad9c62fd880 100644 --- a/apps/user_ldap/openapi.json +++ b/apps/user_ldap/openapi.json @@ -140,7 +140,11 @@ "description": "Whether to show the password", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { diff --git a/core/openapi.json b/core/openapi.json index 2314c0df4138d..52e684ee729f6 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -864,7 +864,11 @@ "schema": { "type": "integer", "nullable": true, - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -1046,7 +1050,11 @@ "description": "Whether to not crop the preview", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -1055,7 +1063,11 @@ "description": "Force returning an icon", "schema": { "type": "integer", - "default": 1 + "default": 1, + "enum": [ + 0, + 1 + ] } }, { @@ -1073,7 +1085,11 @@ "description": "Whether to fallback to the mime icon if no preview is available", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } } ], @@ -1177,7 +1193,11 @@ "description": "Whether to not crop the preview", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -1186,7 +1206,11 @@ "description": "Force returning an icon", "schema": { "type": "integer", - "default": 1 + "default": 1, + "enum": [ + 0, + 1 + ] } }, { @@ -1204,7 +1228,11 @@ "description": "Whether to fallback to the mime icon if no preview is available", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } } ], @@ -1435,7 +1463,10 @@ "headers": { "X-NEXTCLOUD-OCM-PROVIDERS": { "schema": { - "type": "boolean" + "type": "boolean", + "enum": [ + true + ] } } }, @@ -1648,7 +1679,11 @@ "description": "Rewrite URLs to absolute ones", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -1749,7 +1784,11 @@ "description": "Rewrite URLs to absolute ones", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -3632,7 +3671,11 @@ "description": "Resolve the references", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { diff --git a/vendor-bin/openapi-extractor/composer.lock b/vendor-bin/openapi-extractor/composer.lock index a85bd1f581e1b..c7dd6e51a7536 100644 --- a/vendor-bin/openapi-extractor/composer.lock +++ b/vendor-bin/openapi-extractor/composer.lock @@ -82,12 +82,12 @@ "source": { "type": "git", "url": "https://github.com/nextcloud/openapi-extractor.git", - "reference": "f4bda5419d4c76e70078ccfc3a0710548826333d" + "reference": "d60f9911c30b7f3b7a5de046cf3bcaaa998376f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/openapi-extractor/zipball/f4bda5419d4c76e70078ccfc3a0710548826333d", - "reference": "f4bda5419d4c76e70078ccfc3a0710548826333d", + "url": "https://api.github.com/repos/nextcloud/openapi-extractor/zipball/d60f9911c30b7f3b7a5de046cf3bcaaa998376f5", + "reference": "d60f9911c30b7f3b7a5de046cf3bcaaa998376f5", "shasum": "" }, "require": { @@ -97,6 +97,9 @@ "php": "^8.1", "phpstan/phpdoc-parser": "^1.23" }, + "require-dev": { + "nextcloud/coding-standard": "^1.1" + }, "default-branch": true, "bin": [ "generate-spec", @@ -108,24 +111,38 @@ "OpenAPIExtractor\\": "src" } }, + "scripts": { + "lint": [ + "find . -name \\*.php -not -path './tests/*' -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l && php -l generate-spec && php -l merge-specs" + ], + "cs:check": [ + "php-cs-fixer fix --dry-run --diff" + ], + "cs:fix": [ + "php-cs-fixer fix" + ], + "test:unit": [ + "cd tests && ../generate-spec" + ] + }, "support": { "source": "https://github.com/nextcloud/openapi-extractor/tree/main", "issues": "https://github.com/nextcloud/openapi-extractor/issues" }, - "time": "2023-12-08T08:42:33+00:00" + "time": "2024-01-08T13:18:50+00:00" }, { "name": "nikic/php-parser", - "version": "v4.17.1", + "version": "v4.18.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" + "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999", + "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999", "shasum": "" }, "require": { @@ -166,22 +183,22 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.18.0" }, - "time": "2023-08-13T19:53:39+00:00" + "time": "2023-12-10T21:03:43+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "1.24.4", + "version": "1.25.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "6bd0c26f3786cd9b7c359675cb789e35a8e07496" + "reference": "bd84b629c8de41aa2ae82c067c955e06f1b00240" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/6bd0c26f3786cd9b7c359675cb789e35a8e07496", - "reference": "6bd0c26f3786cd9b7c359675cb789e35a8e07496", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/bd84b629c8de41aa2ae82c067c955e06f1b00240", + "reference": "bd84b629c8de41aa2ae82c067c955e06f1b00240", "shasum": "" }, "require": { @@ -213,9 +230,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.24.4" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.25.0" }, - "time": "2023-11-26T18:29:22+00:00" + "time": "2024-01-04T17:06:16+00:00" } ], "packages-dev": [],