Comments (3)
Yeah, adding a name
should solve it. TBH, this project is not supported any longer since all of the OAS3 stuff is in Sanic Extensions now. It is still here for anyone still using OAS2. But, we will not continue to support and/or maintain it indefinitely into the future.
If you would like to make a PR, I am happy to accept it. But, I'd suggest moving to Sanic Extensions where full support will be guaranteed by the core team.
from sanic-openapi.
This error occurs here, because sanic of name conflict:
oas3_blueprint.static("/", dir_path + "/index.html", strict_slashes=True)
oas3_blueprint.static("", dir_path)
Pass names throw params not very good idea, I think. Maybe just add names like swagger_index and swagger and possibility to set it throw env variables. What do you think? I can do pull request?
from sanic-openapi.
Yeah I saw that it's deprecated now, and I migrated to use sanic extensions, so, I don't have that problem now. It's up to you guys if you want to solve this bug or not. Thanks anyway.
from sanic-openapi.
Related Issues (20)
- pyinstaller may cause problems with sanic and/or sanic-openapi HOT 4
- can not import openapi2_blueprint from sanic_openapi HOT 2
- [UserWarning] Use instance.ctx._spec instead HOT 1
- When I run the following example, the following error occurs HOT 5
- [Feature Request][OpenApi3] Add support for enums HOT 6
- [Bug]can not render all methods with the same url when use routes of Blueprint way HOT 2
- [Bug] Decorator doc/openapi not work when using `routes of HTTPMethodView under Bluebprint instanc` way HOT 1
- [Bug] Swagger cant show path variable HOT 7
- Method POST not allowed for URL HOT 2
- Can't handle duplicate path HOT 1
- [Bug] Even after excluding an endpoint from doc, it still shows the route on swagger, although not the contents of it.
- [Feature Request] Custom Ordering of Endpoints and Authorization HOT 5
- Cannot add `allowed options`/ choices to a query parameter HOT 1
- [Feature Request] disable secure for individual route HOT 4
- distutils package is depricated in python 3.10 HOT 4
- [Feature Request] Create new Release for Sanic 21.12.0 HOT 2
- [Feature Request] Allow default endpoint in OpenAPI V3 Blueprints to be configurable HOT 1
- openapi.component needlessly inspects properties, gets stuck HOT 1
- [Bug] Doubly defined objects in the output specification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sanic-openapi.