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

default resource container using v2.0 swagger file? #628

Closed
makenai opened this issue Sep 30, 2014 · 3 comments
Closed

default resource container using v2.0 swagger file? #628

makenai opened this issue Sep 30, 2014 · 3 comments

Comments

@makenai
Copy link

makenai commented Sep 30, 2014

When I render the docs on https://raw.githubusercontent.com/wordnik/swagger-spec/master/examples/v2.0/json/petstore-simple.json, everything is contained under a 'default' parent resource that needs to be opened, which is different than the behavior on the v1.2 example.

Is that on purpose? How can I make it go away?

@webron
Copy link
Contributor

webron commented Sep 30, 2014

It's not really different.
The sample file you use just doesn't have the "tags" in it.

Try this instead - http://petstore.swagger.wordnik.com/v2/swagger.json

@fehguy
Copy link
Contributor

fehguy commented Sep 30, 2014

The tags attribute lets you control where the operations go. You can even have the same operation in multiple groups. As @webron said, when an operation is not "tagged", it moves under the default group.

@makenai
Copy link
Author

makenai commented Sep 30, 2014

Aha, thanks!

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

3 participants