Skip to content

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

@yuu2lee4

Description

@yuu2lee4

解析出来的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": "support@example.com"
        },
        "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": {}
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions