Bump.sh CLI - Deploy your OpenAPI & AsyncAPI documentations from your CI
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 6 months ago
On top of some dependency npm package upgrades (to remove the nasty security audit warnings) this release fixes a small bug.
The release fixes a bug in the newly introduced bump overlay
command to allow overlay actions targeting the root of the document ($
in JSON path).
This should help for the kind of use-case where you want to add topics to your API document, e.g.:
overlay: 1.0.0
info:
title: Adding topics to my API
version: 0.0.1
actions:
- target: "$"
update:
x-topics:
- title: Getting started
content: |
This paragraph is added via an overlay because my **tech
writers** team is different from my **developers** team
and I want to publish introduction topics in our API
documentation!
Have fun designing APIs π β¨
Published by github-actions[bot] 7 months ago
overlay
command to apply OpenAPI overlays to an existing API documentThis release adds a new command to the cli: bump overlay
to apply OpenAPI overlays to an input API document. Usage is as simple as it gets. As the functionality is still pretty new (the Overlay specification has yet some questions to answer) consider this new command as a beta feature. Overlay behaviors might change in the future.
bump overlay api-document.yaml overlay-file.yaml > api-overlayed-document.yaml
The command will output a new generated API document with the overlay applied.
Note: you can also apply the overlay during the bump deploy
command with the new --overlay
flag:
bump deploy api-document.yaml --doc my-doc --token my-token --overlay overlay-file.yaml
Published by github-actions[bot] about 1 year ago
This is a tiny release without noticeable change but some fixes:
Published by github-actions[bot] about 1 year ago
This release fixes a bug introduced in v2.7.0 which wouldn't allow the usage of the bump deploy
command followed by a URL. Only files would be accepted as an argument.
Now, bump deploy --doc bump https://developers.bump.sh/source.json
works as expected.
Published by github-actions[bot] over 1 year ago
deploy
multiple files at once on your Hub with bump deploy --hub my-hub DIRECTORY
deploy
multiple files at once on your HubYou can now provide a directory path instead of being limited to a single file path only.
deploy
command to easily target a hub: bump deploy --hub my-hub DIRECTORY
.It will allow you to deploy all the files within the specified directory to your desired my-hub
hub on Bump.sh.
Use the --filename-pattern <pattern>
flag. This pattern can include *
wildcard special character, {slug}
a filter which will extract your documentation slug from the filename, and any other fixed characters. A picture is worth a thousand words:
Here is an example where you would want to deploy the whole my/directory/
directory to your my-hub
Hub with the following command.
bump deploy my/directory/ --hub my-hub --filename-pattern *-api-{slug}-service
Where the directory holds those files:
my/dir/
ββ private-api-users-service.yml
ββ partner-api-payments-service.yml
ββ public-api-contracts-service.yml
All of the three files shown above will be deployed to your Bump.sh Hub with users
, payments
and contracts
being the respective documentation slugs.
bump preview --live my-definition-api.yml
) will create a first preview straight away without waiting for a first change on the target file.Have fun designing APIs π β¨
Published by github-actions[bot] over 1 year ago
diff
command accepts a new --fail-on-breaking
argumentbump diff
command you can now pass the --fail-on-breaking
argument in order for the command to return an error code if the diff contains a breaking change. This is especially useful in a CI environment when diff is computed for each pull request. Note: this argument is enabled by default if the environment variable CI=true
is set.Have fun designing APIs π β¨
Published by github-actions[bot] almost 2 years ago
diff
command accepts a new --expire
argumentbump diff
command without authentication (without --token
and --doc
arguments) you can now provide a custom expiration date (defaults to 1 day). E.g. bump diff --expires '2023-03-01' file-openapi-1.yml file-openapi-2.yml
to create a public diff which will expire on the 1st of March 2023. You can also provide the keyword --expires never
for your generated public diff to never expire.AsyncAPI recently release their 2.5 version. Check out their blog post announcement: https://www.asyncapi.com/blog/release-notes-2.5.0
With this new release of the Bump CLI we partially support the latest changes of the AsyncAPI spec.
Thanks to @dependabot, all the node dependencies we use are up-to-date as of today.
Continue to have fun designing APIs π β¨
Published by github-actions[bot] about 2 years ago
This is a minor release to fix a bug in filesystem external references on Windows machines. Cf #360
Published by github-actions[bot] over 2 years ago
diff
and deploy
commands accepts a new --branch
argumentBoth the diff
& deploy
commands will now accept a --branch
argument so you can deploy new versions of your API reference in a separate branch. By default, when you don't use the argument all new versions are deployed to a default main branch.
This new feature is useful when you want to keep multiple history available on your API documentation. For example, you might want to deploy all your newest API changes on a latest
branch (with the new --branch latest
argument), and when happy about the latest changes, you decide to release to the main default branch (by removing the --branch ...
argument).
AsyncAPI recently release their 2.4 version. Check out their blog post announcement: https://www.asyncapi.com/blog/release-notes-2.4.0
With this new release of the Bump CLI we partially support the latest changes of the AsyncAPI spec.
Thanks to @dependabot, all the node dependencies we use are up-to-date as of today.
Have fun designing APIs and our new branching mechanism π³ β¨
Published by github-actions[bot] over 2 years ago
Have fun designing APIs β¨
Published by github-actions[bot] over 2 years ago
diff
command can now be called unauthenticatedbump diff
command can be called without the --doc
(and token) flags so you can now diff any two OpenAPI or AsyncAPI definitionsPublished by paulRbr almost 3 years ago
diff
command now accepts a --format
argumentbump diff
command now accepts a --format
argument to be able to return three different format diff outputs:
text
will return the current default formatmarkdown
will return a markdown formatted diffjson
will return a list of json objects with all the details of the diffPublished by github-actions[bot] almost 3 years ago
commands/diff.ts
Diff command class to be able to programmatically retrieve the diff result. Instead of calling bump.Diff.run([cli, params])
you'll now have to instantiate the lib and use the exported run
function like so: new bump.Diff(config).run
. See the run
function signature for details.Thanks to @dependabot, all the node dependencies we use are up-to-date as of today.
Published by github-actions[bot] about 3 years ago
bump diff
command. See #172 for detailsPublished by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago
This release brings a new possibility to the existing bump diff
command which was released in v2.1.0
.
You can now compare any two different files together in the context of your existing Bump documentation. This means you will still need to be authenticated with your API on Bump to compare two given files or URLs. Here's how you would do it:
$ bump diff openapi-file.yml next-openapi-file.yml --doc <doc_slug> --token <your_doc_token>
* Let's compare the two given definition files... done
Updated: POST /users
Body attribute added: postcode
In a future version, you will also be able to use the bump diff
command without authentication so stay tuned!
β¨
Published by github-actions[bot] about 3 years ago
Thanks to @dependabot, all the node dependencies we use are up-to-date as of today.
Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago
A new --live
flag was added to the bump preview
command.
This gives you the ability to stay focused on your API definition file (OpenAPI or AsyncAPI file) while seeing your Bump preview documentation page being updated as you change the file.
No need for a specific text editor, or any extension, just use the bump
CLI to preview your documentation live.
Thanks to @dependabot, as usual, all the node dependencies we use are now up-to-date.