question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

join command creating _other tags unnecessarily

See original GitHub issue

Describe 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:open
  • Created 2 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
steve-nay-sagecommented, Aug 31, 2022

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

0reactions
SmoliyYcommented, Sep 1, 2022

@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 😞

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I merge a git tag onto a branch - Stack Overflow
Is it possible the other way? Merge a branch to the tag? I tried "git checkout tag_name" and "git merge branch". But ended...
Read more >
How to do anti-join or inverse join in bash
I wouldn't use join for this because join requires input to be sorted, which is an unnecessary complication for such a simple job....
Read more >
ExifTool FAQ
"Other software can't read information written by ExifTool" ... In this command, -a allows duplicate tags to be extracted, -G1 shows the ...
Read more >
Best practices for writing Dockerfiles - Docker Documentation
Best practices for writing Dockerfiles. This document covers recommended best practices and methods for building efficient images.
Read more >
git-merge Documentation - Git
This command is used by git pull to incorporate changes from another repository and can be used by hand to merge changes from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found