flask-siwadoc
flask-siwadoc copied to clipboard
flask-siwadoc is a flask data validator and openapi document generator automaticly
你好,flask-siwadoc这个包支持传入token吗? 我在后端做了接口token校验,没有token的话无法请求接口,那么在flask-siwadoc能不能像Java springboot中的swagger一样将token放在请求头,每次调用接口时自动携带 English description: Hello, does the flask-siwadoc package support passing tokens? I have done the token verification of the interface on the back end and cannot request the...
worker_processes 1; events { worker_connections 1024; } http { server { listen 80; server_name tttt; location /eng/ { proxy_pass http://localhost:8800/; } } } nginx路径配置如下,访问tttt/eng/docs时会报错, Errors Hide Fetch errorresponse status is...
目前没看到有支持authorizations的入口  就像这样
 + 这里的方法,只能写死前端要传几个文件,但其实不知道前端会传几个文件 + 这里的file1: file2: 直接就是key了,其实并不能这样设置,而是要根据上传的文件名作为key + 大神,这里的siwa接口该如何去编辑呢?
siwadoc 是否支持 自定义 response code 和 description, 例如 5xx: 'something is invalid'
@lzjun567 你好,我使用了您的 flask-siwadoc 项目,对我有很大帮助。 我为了减少每个接口都要写装饰器,对蓝图进行了封装。 如果我的pr您能接受,我很感谢您。 以下是新增的蓝图方式: 1. tags、group 参数可以通过蓝图传递,作用于所有当前蓝图所注册的接口。 2. route 的参数优先级高于蓝图,因此可以针对接口重写 tags、group。 3. route 增加参数 ignore 用于忽略掉某些接口不进入swagger文档中。
`AssertionError: A name collision occurred between blueprints and . Both share the same name "siwadoc". Blueprints that are created on the fly need unique names.`
针对header仅提供了文档支持,但并未对header参数进行校验,不知是否有意为之?
siwa.doc 方法的x参数并没有用上 ```python code_msg = {} if code_msg: wrapper.x = code_msg ``` 这段代码相当于写死了,没有透出接口