oat-sa/swagger-json-collector

There is no license information available for the latest version (2.0.0) of this package.

Combine multiple swagger 2.0 documents into a single document

Maintainers

Package info

github.com/oat-sa/swagger-json-collector

pkg:composer/oat-sa/swagger-json-collector

Statistics

Installs: 27

Dependents: 0

Suggesters: 0

Stars: 0

2.0.0 2017-04-28 13:34 UTC

This package is auto-updated.

Last update: 2026-03-16 06:38:05 UTC


README

Combines Swagger docs from various sources

Example of usage

Valid input formats are files that contains JSON, or JSON strings or PHP arrays. Formats can be mixed within the input array.

$collector = new DocsCollector();


$doc = $collector->generate(['swagger.json', '{ "swagger": "2.0",...}'], [ 'swagger' => '2.0',...]]);

file_put_contents('swaggerDoc.json', json_encode($doc))