Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group tags by name #65

Open
erictuvesson opened this issue Dec 4, 2019 · 0 comments
Open

Group tags by name #65

erictuvesson opened this issue Dec 4, 2019 · 0 comments

Comments

@erictuvesson
Copy link

In my case I have the same resource as both controllers work around the same object, just makes it easier to split it out a bit.

# @resource MyResource
class MyController1 < ActionController::Base
end

# @resource MyResource
class MyController2 < ActionController::Base
end

This will generate 2 tags in the swagger output.

"tags": [
  {
    "name": "MyResource",
    "description": ""
  },
  {
    "name": "MyResource",
    "description": ""
  }
],

When parsing the swagger file I get this warning.

Semantic error at tags.2
Tag Objects must have unique `name` field values

This is not major as it still works with most parsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant