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

Associate correct tags when using blueprints prefixes #7

Merged
merged 2 commits into from
Oct 25, 2015

Conversation

AlexisNo
Copy link
Contributor

When configuring sails.config.blueprints.prefix and/or sails.config.blueprints.restPrefix, the controller tag was not correctly retrieved. Subsequently, the paths appeared in the "default" section of swagger-ui instead of a section having the API name.

This PL returns the corresponding tag when the first of these conditions is fulfilled:

  • blueprints.prefix and blueprints.restPrefix match the route and a controller tag is found
  • blueprints.prefix match the route and a controller tag is found
  • blueprints.restPrefix match the route and a controller tag is found
  • a controller tag is found

Whatever the configuration of sails.config.blueprints.prefix and sails.config.blueprints.restPrefix is, the path with be associated with a correct tag.

@AlexisNo AlexisNo changed the title Blueprint config tags Associate correct tags when using blueprints prefixes Oct 15, 2015
@tjwebb
Copy link
Member

tjwebb commented Oct 25, 2015

thanks!

tjwebb added a commit that referenced this pull request Oct 25, 2015
Associate correct tags when using blueprints prefixes
@tjwebb tjwebb merged commit 92d8f63 into trailsjs:master Oct 25, 2015
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

Successfully merging this pull request may close these issues.

2 participants