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

Update extension.py to support Blueprint Name in init #167

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

waldobeest
Copy link

Adding APISPEC_BLUEPRINT_NAME, to prevent Error:

AssertionError: A name collision occurred between blueprints <flask.blueprints.Blueprint object at 0x11f474cc0> and <flask.blueprints.Blueprint object at 0x11ee7b898>. Both share the same name "flask-apispec". Blueprints that are created on the fly need unique names.

When trying to create 2 separate swagger endpoints for a set of resources. (i.e Public and Private)

Adding APISPEC_BLUEPRINT_NAME, to prevent Error:

AssertionError: A name collision occurred between blueprints <flask.blueprints.Blueprint object at 0x11f474cc0> and <flask.blueprints.Blueprint object at 0x11ee7b898>. Both share the same name "flask-apispec". Blueprints that are created on the fly need unique names.

When trying to create 2 separate swagger endpoints for a set of resources. (i.e Public and Private)
@waldobeest waldobeest changed the title Update extension.py Update extension.py to support Blueprint Name in init Oct 7, 2019
@codecov-io
Copy link

codecov-io commented Oct 7, 2019

Codecov Report

Merging #167 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #167   +/-   ##
=======================================
  Coverage   97.71%   97.71%           
=======================================
  Files           8        8           
  Lines         350      350           
=======================================
  Hits          342      342           
  Misses          8        8
Impacted Files Coverage Δ
flask_apispec/extension.py 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1842221...698e3a2. Read the comment docs.

@olegyablokov
Copy link

Any updates?

@codecov-commenter
Copy link

Codecov Report

Merging #167 (805f132) into master (1842221) will not change coverage.
The diff coverage is n/a.

❗ Current head 805f132 differs from pull request most recent head b0826af. Consider uploading reports for the commit b0826af to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##           master     #167   +/-   ##
=======================================
  Coverage   97.71%   97.71%           
=======================================
  Files           8        8           
  Lines         350      350           
=======================================
  Hits          342      342           
  Misses          8        8           
Impacted Files Coverage Δ
flask_apispec/extension.py 100.00% <ø> (ø)

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.

5 participants