api-spec-converter
api-spec-converter copied to clipboard
swagger_1 -> swagger_2: Unrelated tags based on path are added
When converting a swagger_1 spec to swagger_2, unrelated tags are being added in addition to the tags that are defined in the swagger_1 specification. I cannot find a way to disable this behaviour.
This is because of the following option:
https://github.com/LucyBot-Inc/api-spec-converter/blob/17a6fbe0af166b373c9b0cdce1d29c51985c7f04/lib/formats/swagger_1.js#L22
This is a bit confusing, because tags from swagger_1 are already copied over:
https://github.com/apigee-127/swagger-converter/blob/06339f067057be81c3afd29bab600ada6b6a896d/index.js#L543-L547