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
2.0.0
2017-04-28 13:34 UTC
Requires (Dev)
- phpunit/phpunit: ^5.5
This package is auto-updated.
Last update: 2024-11-16 03:42:21 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))