更新时间:2025-04-16 GMT+08:00
分享

Swagger脚本参数未定义

问题现象

Swagger 2.0接口param_test/path/{param1}/{param2}/{param3}缺失参数定义。

原因分析

Swagger 2.0文件中,URL路径http://%s/sutservice/v1/param_test/path/{param1}/{param2}/{param3}中包含的路径变量“param2”未定义,请求方法为“Get”,函数名为“paramTestPathUsingGET”

处理方法

找到接口param_test/path/{param1}/{param2}/{param3},补充缺失参数。

相关文档