Upsert on re-syncing w/ cli #920
Labels
API
Underlying issue is with the ReadMe API and not necessarily the `rdme` client itself
bug
Something isn't working
command:openapi
Issues pertaining to the `openapi`, `validate`, `reduce`, or `swagger` commands
There is some unintentional behavior with the CLI allowing the creation/update on an oas re-sync. I would think if you pass an incorrect OAS ID on an update or re-sync it would result in an error.
I am able to pass a categoryID to this cli and it will create a new OAS definition; hence duplicating the spec within a project.
Unless the method is designed to be an upsert; but the documentation isn’t clear that if you pass an id that doesn’t exists it will create the oas using that id. Probably this is an unintentional design or docs are incorrect.
Docs:
This will edit (re-sync) an existing API definition (identified by --id) within your ReadMe project. This is the recommended approach for usage in CI environments.
rdme openapi [url-or-local-path-to-file] --id={existing-id}
The text was updated successfully, but these errors were encountered: