Skip to content

For join, the same tag in multiple input files should not be seen as a conflict #668

Description

@steve-nay-sage

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:

  1. Allow it.
  2. Error out.
  3. Prefix with info property
  4. 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.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions