Problem
I have two (or more) OAS files that use the same tag to tag some operations. Running openapi join results in an error about "Conflict on tags."
Improved Solution
I don't see why it would be considered a conflict if multiple schemas that you're trying to join together use the same tag names. Maybe display a warning, but it's not an irreconcilable crisis that should prevent the join from succeeding. Use the first (or the last) description of the tag--authors can figure that out.
This is what is already done with components that are defined in multiple input files but are identical. It's not considered an error.
Perhaps have a command line option to let the user choose what to do if the same tag name is used in multiple files:
- Allow it.
- Error out.
- Prefix with info property
- Prefix with filename
Describe alternatives you've considered
I tried using prefix-tags-with-info-prop but that gave me different tags with goofy names, which was not at all useful.
Problem
I have two (or more) OAS files that use the same tag to tag some operations. Running
openapi joinresults in an error about "Conflict on tags."Improved Solution
I don't see why it would be considered a conflict if multiple schemas that you're trying to join together use the same tag names. Maybe display a warning, but it's not an irreconcilable crisis that should prevent the join from succeeding. Use the first (or the last) description of the tag--authors can figure that out.
This is what is already done with components that are defined in multiple input files but are identical. It's not considered an error.
Perhaps have a command line option to let the user choose what to do if the same tag name is used in multiple files:
Describe alternatives you've considered
I tried using prefix-tags-with-info-prop but that gave me different tags with goofy names, which was not at all useful.