diff --git a/openapi.json b/openapi.json index 9e06758db..7e27390a1 100644 --- a/openapi.json +++ b/openapi.json @@ -2745,24 +2745,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "viewId": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "View ID" - } - } - } - } - } - }, "parameters": [ { "name": "tableId", @@ -2773,6 +2755,16 @@ "type": "integer", "format": "int64" } + }, + { + "name": "viewId", + "in": "query", + "description": "View ID", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } } ], "responses": { @@ -3795,30 +3787,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit" - }, - "offset": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ { "name": "tableId", @@ -3829,6 +3797,26 @@ "type": "integer", "format": "int64" } + }, + { + "name": "limit", + "in": "query", + "description": "Limit", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } } ], "responses": { @@ -3914,30 +3902,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit" - }, - "offset": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ { "name": "tableId", @@ -3948,6 +3912,26 @@ "type": "integer", "format": "int64" } + }, + { + "name": "limit", + "in": "query", + "description": "Limit", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } } ], "responses": { @@ -4134,30 +4118,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit" - }, - "offset": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ { "name": "viewId", @@ -4168,6 +4128,26 @@ "type": "integer", "format": "int64" } + }, + { + "name": "limit", + "in": "query", + "description": "Limit", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } } ], "responses": { diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 536812f77..53034bb30 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -2060,7 +2060,10 @@ export interface operations { }; readonly "api1-index-table-columns": { readonly parameters: { - readonly query?: never; + readonly query?: { + /** @description View ID */ + readonly viewId?: number | null; + }; readonly header?: never; readonly path: { /** @description Table ID */ @@ -2068,17 +2071,7 @@ export interface operations { }; readonly cookie?: never; }; - readonly requestBody?: { - readonly content: { - readonly "application/json": { - /** - * Format: int64 - * @description View ID - */ - readonly viewId?: number | null; - }; - }; - }; + readonly requestBody?: never; readonly responses: { /** @description View deleted */ readonly 200: { @@ -2670,7 +2663,12 @@ export interface operations { }; readonly "api1-index-table-rows-simple": { readonly parameters: { - readonly query?: never; + readonly query?: { + /** @description Limit */ + readonly limit?: number | null; + /** @description Offset */ + readonly offset?: number | null; + }; readonly header?: never; readonly path: { /** @description Table ID */ @@ -2678,22 +2676,7 @@ export interface operations { }; readonly cookie?: never; }; - readonly requestBody?: { - readonly content: { - readonly "application/json": { - /** - * Format: int64 - * @description Limit - */ - readonly limit?: number | null; - /** - * Format: int64 - * @description Offset - */ - readonly offset?: number | null; - }; - }; - }; + readonly requestBody?: never; readonly responses: { /** @description Row values returned */ readonly 200: { @@ -2740,7 +2723,12 @@ export interface operations { }; readonly "api1-index-table-rows": { readonly parameters: { - readonly query?: never; + readonly query?: { + /** @description Limit */ + readonly limit?: number | null; + /** @description Offset */ + readonly offset?: number | null; + }; readonly header?: never; readonly path: { /** @description Table ID */ @@ -2748,22 +2736,7 @@ export interface operations { }; readonly cookie?: never; }; - readonly requestBody?: { - readonly content: { - readonly "application/json": { - /** - * Format: int64 - * @description Limit - */ - readonly limit?: number | null; - /** - * Format: int64 - * @description Offset - */ - readonly offset?: number | null; - }; - }; - }; + readonly requestBody?: never; readonly responses: { /** @description Rows returned */ readonly 200: { @@ -2863,7 +2836,12 @@ export interface operations { }; readonly "api1-index-view-rows": { readonly parameters: { - readonly query?: never; + readonly query?: { + /** @description Limit */ + readonly limit?: number | null; + /** @description Offset */ + readonly offset?: number | null; + }; readonly header?: never; readonly path: { /** @description View ID */ @@ -2871,22 +2849,7 @@ export interface operations { }; readonly cookie?: never; }; - readonly requestBody?: { - readonly content: { - readonly "application/json": { - /** - * Format: int64 - * @description Limit - */ - readonly limit?: number | null; - /** - * Format: int64 - * @description Offset - */ - readonly offset?: number | null; - }; - }; - }; + readonly requestBody?: never; readonly responses: { /** @description Rows returned */ readonly 200: { diff --git a/vendor-bin/openapi-extractor/composer.json b/vendor-bin/openapi-extractor/composer.json index f38eddb55..3812c91f0 100644 --- a/vendor-bin/openapi-extractor/composer.json +++ b/vendor-bin/openapi-extractor/composer.json @@ -1,13 +1,6 @@ { - "minimum-stability": "dev", - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/nextcloud/openapi-extractor" - } - ], "require-dev": { - "nextcloud/openapi-extractor": "dev-main" + "nextcloud/openapi-extractor": "^1.0.0" }, "config": { "platform": { diff --git a/vendor-bin/openapi-extractor/composer.lock b/vendor-bin/openapi-extractor/composer.lock index e21dd3b10..c78ee4750 100644 --- a/vendor-bin/openapi-extractor/composer.lock +++ b/vendor-bin/openapi-extractor/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b840f1227cbcb0d1d5476df060262399", + "content-hash": "faaad1bad2acbdf29c2b09af9554211c", "packages": [], "packages-dev": [ { @@ -79,16 +79,16 @@ }, { "name": "nextcloud/openapi-extractor", - "version": "dev-main", + "version": "v1.0.0", "source": { "type": "git", - "url": "https://github.com/nextcloud/openapi-extractor.git", - "reference": "5f5f339c43457919fbe46e91e4256bde5fb07807" + "url": "https://github.com/nextcloud-releases/openapi-extractor.git", + "reference": "88e347097db28b6e3f8f3c221502b80a4f455b1f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/openapi-extractor/zipball/5f5f339c43457919fbe46e91e4256bde5fb07807", - "reference": "5f5f339c43457919fbe46e91e4256bde5fb07807", + "url": "https://api.github.com/repos/nextcloud-releases/openapi-extractor/zipball/88e347097db28b6e3f8f3c221502b80a4f455b1f", + "reference": "88e347097db28b6e3f8f3c221502b80a4f455b1f", "shasum": "" }, "require": { @@ -99,9 +99,9 @@ "phpstan/phpdoc-parser": "^1.28" }, "require-dev": { - "nextcloud/coding-standard": "^1.2" + "nextcloud/coding-standard": "^1.2", + "nextcloud/ocp": "dev-master" }, - "default-branch": true, "bin": [ "generate-spec", "merge-specs" @@ -112,38 +112,29 @@ "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" - ] - }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "AGPL-3.0-or-later" + ], + "description": "A tool for extracting OpenAPI specifications from Nextcloud source code", "support": { - "source": "https://github.com/nextcloud/openapi-extractor/tree/main", - "issues": "https://github.com/nextcloud/openapi-extractor/issues" + "issues": "https://github.com/nextcloud-releases/openapi-extractor/issues", + "source": "https://github.com/nextcloud-releases/openapi-extractor/tree/v1.0.0" }, - "time": "2024-06-06T10:43:00+00:00" + "time": "2024-08-20T16:46:27+00:00" }, { "name": "nikic/php-parser", - "version": "dev-master", + "version": "v5.1.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "daaadc3bae458908aa477b90a8932e7da9253f22" + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/daaadc3bae458908aa477b90a8932e7da9253f22", - "reference": "daaadc3bae458908aa477b90a8932e7da9253f22", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1", + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1", "shasum": "" }, "require": { @@ -156,7 +147,6 @@ "ircmaxell/php-yacc": "^0.0.7", "phpunit/phpunit": "^9.0" }, - "default-branch": true, "bin": [ "bin/php-parse" ], @@ -187,9 +177,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/master" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0" }, - "time": "2024-06-03T06:24:19+00:00" + "time": "2024-07-01T20:03:41+00:00" }, { "name": "phpstan/phpdoc-parser", @@ -240,10 +230,8 @@ } ], "aliases": [], - "minimum-stability": "dev", - "stability-flags": { - "nextcloud/openapi-extractor": 20 - }, + "minimum-stability": "stable", + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": [],