Stoplight编辑器操作基本路径中的OpenAPI建模问题未与操作路径并置

时间:2020-06-22 10:13:29

标签: openapi

我正在尝试使用本地计算机1.12版本上的stoplight编辑器在一个OpenAPI 3.0 yaml文件中对几个API进行建模。我面临的问题是,当我尝试模拟API时,操作路径未串联。

servers:
   url: 'http://localhost:8080/customer'
paths:
 /updateAddress:
post:

在上面,我希望在模拟中形成的URL是http:// localhost:8080 / customer / updateAddress,但是在模拟操作中,URL是作为http:// localhost:8080 / customer

因此,模拟服务器未将服务器部分中定义的基本路径与操作路径连接在一起。这个已知问题,任何替代方案或解决办法吗?

0 个答案:

没有答案