diff options
-rw-r--r-- | apps/files/openapi.json | 6 | ||||
-rw-r--r-- | apps/files_sharing/openapi.json | 18 | ||||
-rw-r--r-- | apps/files_trashbin/openapi.json | 6 | ||||
-rw-r--r-- | apps/theming/openapi.json | 18 | ||||
-rw-r--r-- | apps/user_ldap/openapi.json | 6 | ||||
-rw-r--r-- | core/openapi.json | 65 | ||||
-rw-r--r-- | 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 c897790f205..4df81800846 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 abbc3d250a6..1cf1de460ba 100644 --- a/apps/files_sharing/openapi.json +++ b/apps/files_sharing/openapi.json @@ -1491,7 +1491,11 @@ "description": "Whether to not crop the preview", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -2186,7 +2190,11 @@ "description": "Include tags in the share", "schema": { "type": "integer", - "default": 0 + "default": 0, + "enum": [ + 0, + 1 + ] } }, { @@ -2830,7 +2838,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 a96cf5f189d..afa0ccfdafd 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 7ed98467e96..f85f916dcaa 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 f775726c8dc..fcad9c62fd8 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 2314c0df413..52e684ee729 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 a85bd1f581e..c7dd6e51a75 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": [], |