We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如上图,每个response返回的结构都是一样的,这里怎么生成统一的泛型
The text was updated successfully, but these errors were encountered:
这个应该检查你输出的openapi的json是不是不正确的,理论上来说,2.0下,都会集中定义在definitions下,而3.0则是在Components 对象下,具体参照openapi3.0规范 https://openapi.apifox.cn/
Sorry, something went wrong.
返回的格式是正确的,但是所有的接口response都是一个固定的结构,data,errors,succeeded,statusCode这几个字段都是固定的,但是我发现所有的接口都生成了一遍这个结构,正常我们自己写的话,这个结构的类型是可以写成一个固定的,然后data字段是一个泛型
这个应该检查你输出的openapi的json是不是不正确的,理论上来说,2.0下,都会集中定义在definitions下,而3.0则是在Components 对象下,具体参照openapi3.0规范 https://openapi.apifox.cn/ 返回的格式是正确的,但是所有的接口response都是一个固定的结构,data,errors,succeeded,statusCode这几个字段都是固定的,但是我发现所有的接口都生成了一遍这个结构,正常我们自己写的话,这个结构的类型是可以写成一个固定的,然后data字段是一个泛型
可以提交一份你的json文件来看看
No branches or pull requests
如上图,每个response返回的结构都是一样的,这里怎么生成统一的泛型
The text was updated successfully, but these errors were encountered: