Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't find version in OpenApi spec #43

Open
msennett9 opened this issue Mar 5, 2021 · 1 comment
Open

Doesn't find version in OpenApi spec #43

msennett9 opened this issue Mar 5, 2021 · 1 comment

Comments

@msennett9
Copy link

I have an JSON OpenApi spec that I want to bump the version in as part of a build process. The version property is located in the info object of the JSON as dictated by the OpenAPI standard. When I run the command, for example, bump 3.0.0 my-api.json, it results in a message of my-api.json did not need to be updated. Is there a way to tell the bump command where to look for the version? When I played around with it, it seems that bump only finds the version field if it is at the top level. Is there a way to tell where the version is actually located?

@msennett9
Copy link
Author

After some experimentation and studying the unit tests, it appears that when bump is used on files other than the pre-defined ones, it will only update if the current version value it finds match the version in the package.json file. Is that a correct understanding?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant