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

yapi import path不支持 {} () #16

Open
yuu2lee4 opened this issue Oct 30, 2020 · 0 comments
Open

yapi import path不支持 {} () #16

yuu2lee4 opened this issue Oct 30, 2020 · 0 comments

Comments

@yuu2lee4
Copy link

解析出来的path有 "/oss/{id+}" 和 "/(zuul|vega)/wechat/getToken",不支持导入

{
    "openapi": "3.0.0",
    "info": {
        "description": "swagger-ui for midway api",
        "version": "1.0.0",
        "title": "midway-swagger",
        "termsOfService": "",
        "contact": {
            "name": "API Support",
            "url": "http://www.example.com/support",
            "email": "[email protected]"
        },
        "license": {
            "name": "Apache 2.0",
            "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
        }
    },
    "tags": [
        {
            "name": "配置",
            "description": "配置相关模块"
        },
        {
            "name": "eureka",
            "description": "eureka相关模块"
        },
        {
            "name": "default",
            "description": "default"
        },
        {
            "name": "oss",
            "description": "oss相关"
        },
        {
            "name": "微信",
            "description": "微信相关"
        }
    ],
    "paths": {
        "/zuul/config/": {
            "get": {
                "tags": [
                    "配置"
                ],
                "summary": "获取配置",
                "description": "只有apollo白名单内的配置才能获取",
                "parameters": [
                    {
                        "in": "query",
                        "name": "path",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/zuul/config/getSXBSrc": {
            "get": {
                "tags": [
                    "配置"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/zuul/config/getEagleEyeSrc": {
            "get": {
                "tags": [
                    "配置"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/zuul/config/getUserGuideSrc": {
            "get": {
                "tags": [
                    "配置"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/zuul/config/frontMonitor": {
            "get": {
                "tags": [
                    "配置"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/info": {
            "get": {
                "tags": [
                    "eureka"
                ],
                "summary": "获取应用信息",
                "description": "获取应用信息",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/health": {
            "get": {
                "tags": [
                    "eureka"
                ],
                "summary": "健康检查",
                "description": "用于k8s获取应用健康状态",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/": {
            "get": {
                "tags": [
                    "default"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/check": {
            "get": {
                "tags": [
                    "default"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/getError": {
            "get": {
                "tags": [
                    "default"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/oss/{id+}": {
            "get": {
                "tags": [
                    "oss"
                ],
                "summary": "oss资源重定向",
                "description": "oss资源重定向",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/(zuul|vega)/wechat/getSignature": {
            "get": {
                "tags": [
                    "微信"
                ],
                "summary": "微信jssdk签名校验",
                "description": "微信jssdk签名校验",
                "parameters": [
                    {
                        "in": "header",
                        "name": "referer",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/(zuul|vega)/wechat/getToken": {
            "get": {
                "tags": [
                    "微信"
                ],
                "summary": "获取token",
                "description": "获取token",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        },
        "/(zuul|vega)/wechat/router": {
            "all": {
                "tags": [
                    "微信"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": ""
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {}
    }
}
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

No branches or pull requests

1 participant