Switon's OpenAPI pipeline for collecting routes, merging YAML fragments, syncing stubs, and exporting JSON specs.
- Document assembly: route metadata and YAML fragments are merged into one OpenAPI document.
- Route collection: HTTP controllers can be scanned into OpenAPI entries.
- Stub sync: discovered routes can generate missing controller and component stubs.
- CLI workflow:
open-api:init,open-api:sync,open-api:export, andopen-api:lintcover the spec loop. - Spec helpers: response schema guessing and sample-to-schema conversion reduce manual work.
composer require switon/openapibash bin/console open-api:init
bash bin/console open-api:sync
bash bin/console open-api:export
bash bin/console open-api:lintDocs: https://docs.switon.dev/latest/openapi
MIT.