PWZER
PWZER
@tropxy You should write it like this ```python @app.route("/api/doc/swagger.json") async def openapi(): config = app.__schema__ for server in config.get('servers', []): server['url'] = 'http://localhost:8080' return jsonify(config) ```
@goblin2oo8 You can see [SwaggerUI Configuration](https://github.com/PWZER/swagger-ui-py#swaggerui-configuration)
@informatica92 You can see [SwaggerUI Configuration](https://github.com/PWZER/swagger-ui-py#swaggerui-configuration)
@pasqLisena This is Flask requirements, you should set url_prefix non-empty, It has nothing to do with this project.
@fithisux It seems that a proxy is added before calling the `api_doc` function, and its uri is `/insight/additive-decomposition`, but this proxy does not work for `/api/doc/static/swagger-ui.css`.
@fithisux I'm guessing you might need to use like this ```python api_doc(app, config_path=DOC_DIR, url_prefix="/insight/additive-decomposition/api/doc", title="API doc") ```
@fithisux Could be the problem caused by this ```python spec.path(view=additive_decomposition_v1_proxy) ```
There could be a problem,thank you for your advice.
@CMCDragonkai I think the validation of `openapi.yaml` should be done at editing time.