Code Monkey home page Code Monkey logo

api-document's People

Contributors

abc-git avatar dependabot[bot] avatar liuanxin 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  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  avatar

Watchers

 avatar  avatar  avatar

api-document's Issues

报错了

使用版本:

请告知引用的版本(请先用 latest 版本重试)
0.9.0

报错信息

请给出错误信息

[TID: N/A] 2024-04-17 17:55:23.836 [http-nio-9604-exec-10] ERROR c.z.h.n.c.a.c.GlobalException - [other,121] - 未知异常
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)
at com.github.liuanxin.api.util.ReturnHandler.returnInfo(ReturnHandler.java:201)
at com.github.liuanxin.api.util.ReturnHandler.handlerReturn(ReturnHandler.java:145)
at com.github.liuanxin.api.util.ReturnHandler.handlerReturn(ReturnHandler.java:39)
at com.github.liuanxin.api.util.WebUtil.infoAndUrlMap(WebUtil.java:120)
at com.github.liuanxin.api.web.DocumentController.collect(DocumentController.java:87)
at com.github.liuanxin.api.web.DocumentController.getUrlInfo(DocumentController.java:77)

希望结果

请告知预期

复现步骤

请告知出现错误时的整个上下文, 如果复现很复杂, 请将 demo 传到 github 并留下地址

关于返回值的建议

试用了您的API文档生成插件,非常棒。但是遇到一个问题。我们的项目中返回值都会转化成 Json 字符串,这样的话您的代码就读取不到正确的返回值。
以前我们用的也是 swagger ,确实有一些槽点。不过上面有一个注解 response 可以指定返回类型,希望您能也加上这个功能。
如果您没时间补充这个功能的话,希望我能代劳,补充一下这个功能。

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.