join command creating _other tags unnecessarily
See original GitHub issueDescribe the bug
I just successfully ran openapi join
on a set of OAS definitions for the first time. It very nicely joined all of the files into a single file without any errors or warnings. For every tag that was in the original files, though, the resulting openap.yaml file contained that tag and another one named {tag-name}_other. For example:
tags:
- name: account-label
x-displayName: account-label
- name: account-label_other
x-displayName: other
- name: adjustment
x-displayName: adjustment
- name: adjustment_other
x-displayName: other
All operations in the input files have tags assigned to them. In the openapi.yaml file, there are no operations that have any of these _other tags assigned to them. So, the _other tags are never used, and based on my reading of the join description, they shouldn’t have been created.
Expected behavior No _other tags are created when all operations in input files already have tags.
openapi-cli
Version(s)
1.0.0.beta.54
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (4 by maintainers)
Here is a zip file containing two OAS files. If you join them, you should see two
_other
tags in the tags section. If there is something wrong in these files that is causing this, please let me know what I need to change.tags_other.zip
@steve-nay-sage thank you a lot for the response and this example! I’ll mark it as a bug, and let you know if there are anything wrong with your files. Currently I cannot see anything that can cause this issue 😞