version-bump-prompt icon indicating copy to clipboard operation
version-bump-prompt copied to clipboard

Doesn't find version in OpenApi spec

Open msennett9 opened this issue 4 years ago • 1 comments

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 avatar Mar 05 '21 21:03 msennett9

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?

msennett9 avatar Mar 17 '21 16:03 msennett9