-
Notifications
You must be signed in to change notification settings - Fork 146
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
[Bug] [INFO] save apiInfo failed:请求参数 data 应当有必需属性 api_type #1173
Comments
hi @chaosheng1991, as someone who also contributes to yapi, I have not come across a parameter called if needed, you can use the rule http.call.before to populate the |
Hi, I search the EasyYapi in idea Marketplace and install it, the version is 2.7.3.212.0. Then I config the server and token in idea, and use the function "Export Yapi" in controller, it shows this "save apiInfo failed:请求参数 data 应当有必需属性 api_type". But when I create the api in yapi system firstly, only name and path, then try it again. I find it it OK, and the params and response is added. Maybe all apis need I create them in yapi system firstly? |
@chaosheng1991 it seems that the yapi version you are using has been customized to require the
with this information, I can try to identify if a customization is necessary based on the yapi response and implement a way to automatically populate the In the meantime, you can use the rule http.call.before to populate the http.call.before=groovy:```
request..body["api_type"] = 1
``` |
Describe the bug
we install EasyYapi 2.7.3.212.0 in idea, choose controller api to export Yapi. The result shows "[INFO] save apiInfo failed:请求参数 data 应当有必需属性 api_type"
To Reproduce
Detailed Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Add config:
Console output
easy_api
Logs of IDEA:
The easiest way to find the product log file is the Help menu, the item name would depend on the IDE version and OS:- Show Log in Explorer
Environment (please complete the following information):
Demo Code
CheckList
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: