redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

feat: duplicate tag names should throw error

Open joriverm opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. a openapi spec file that has 2 tags with the same name doesn't raise an error nor warning about it.

Describe the solution you'd like i would expect the tool to at least throw a warning about the tag being duplicate. the swagger editor ( https://editor.swagger.io/ ) does complain about it and considers it an error

Describe alternatives you've considered N/A, we currently have the tool running on a cron and we will see when it is added :)

Additional context used json to test : petstore.json used command : redocly lint petstore.json --lint-config=error --format=json current log : log.txt

joriverm avatar Sep 13 '24 06:09 joriverm

This isn't a bug, but rather a feature request. We need to add a rule to check for the uniqueness of tag names. Anyway, thanks for creating the issue!

tatomyr avatar Sep 13 '24 07:09 tatomyr

my mistake, i considered it a bug as it is apparently in the specs, but fair enough! if any testing or info is needed let me know!

joriverm avatar Sep 13 '24 08:09 joriverm