Code Monkey home page Code Monkey logo

y2t's People

Contributors

ben-yby avatar wynne-cwb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

y2t's Issues

关于config文件中的自定义wrapper

wrapper:默认的返回体,如果接口有默认的返回包体时,可以通过wrapper定义 response,其中T代表返回的具体 data
这个字段能否自由度再高一点,现在是只能写interface的内容吗?我想统一对响应体做一些别的操作好像没法实现

配置表中新增登录URL可选项

大多数公司yapi部署在内网,同时新增了oa登录逻辑,可以将登录url以配置的形式暴露出来或者将登录逻辑单独。

fs.mkdirSync(path, { recursive: true }) 报错

Error: ENOENT: no such file or directory, mkdir 'src/services/thegatewaybackground'
at Object.mkdirSync (fs.js:987:3)
at generateDir (/Users/manbang/Desktop/github/Y/src/utils/file.js:14:10)
at generateDeclaration (/Users/manbang/Desktop/github/Y/src/lib/declaration.js:156:3)

问一下vscode工具的一些问题

  1. 如果更改了生成的api文件,那么可以diff出来么。我的需求有一个是可能生成出来的格式类型有误我自己调整了,但是diff出来就把我改好的覆盖了。会出现这样的问题么

yapi return error json Schema

{
    "type": "object",
    "required": [],
    "properties": {
        "prepayFundFlowInfos": {
            "type": "array",
            "description": "xxx",
            "items": {
                "$ref": "#/definitions/PrepayFundFlowInfoRsp",  // $ref should be $$ref
                "type": "string"
            }
        }
    }
}
UnhandledPromiseRejectionWarning: Error: json schema转声明文件失败:MissingPointerError: Token "definitions" does not exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.