Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
description: Assembles a single YAML spec file from partial files
command: node swagger-spec-assembler.js > api-spec.yaml
description: Create a PR against the documentation repository
export GIT_BRANCH=update-from-specs-`date +%Y-%m-%-d-%H-%M`
&& git clone
&& cd documentation
&& git branch $GIT_BRANCH
&& git checkout $GIT_BRANCH
&& cp ../api-spec.yaml api-docs/api-spec.yaml
&& git add -u
&& git commit -m "auto-generated API documentation"
&& git push origin $GIT_BRANCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment