No description
Find a file
github-actions[bot] 0ed402c47d
Merge pull request #356 from nextcloud/dependabot/github_actions/dot-github/workflows/shivammathur/setup-php-2.37.2
ci(deps): Bump shivammathur/setup-php from 2.37.1 to 2.37.2 in /.github/workflows
2026-06-13 02:27:50 +00:00
.github ci(deps): Bump shivammathur/setup-php in /.github/workflows 2026-06-13 01:03:09 +00:00
bin
LICENSES
src ci(deps-dev): Bump nextcloud/coding-standard from 1.4.0 to 1.5.0 2026-05-26 08:43:43 +02:00
tests ci(deps-dev): Bump nextcloud/coding-standard from 1.4.0 to 1.5.0 2026-05-26 08:43:43 +02:00
.editorconfig
.gitignore
.php-cs-fixer.dist.php
AUTHORS.md
CHANGELOG.md
composer.json
composer.lock chore(dev-deps): Bump nextcloud/ocp package 2026-06-07 03:26:38 +00:00
generate-spec.php feat: Warn about responses with lists without a limit parameter 2026-03-12 15:38:44 +01:00
LICENSE
merge-specs.php
README.md
rector.php
REUSE.toml

openapi-extractor

REUSE status

Installation

composer require --dev nextcloud/openapi-extractor

To avoid dependency and PHP version conflicts it is best to install the package to vendor-bin using https://github.com/bamarni/composer-bin-plugin instead.

Create a CI workflow to check the specifications are up-to-date

The Workflow template repository has a template available: https://github.com/nextcloud/.github/blob/master/workflow-templates/openapi.yml

Afterward in your repository settings set the OpenAPI workflow to be required for merging pull requests.

Usage

Checkout the OpenAPI tutorial at https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-openapi.html to see how you can use openapi-extractor.

🐢 Performance

Make sure that you have xdebug turned off when generating OpenAPI specs, otherwise it can take multiple minutes instead of seconds.