我无法为带有 autorest 3.0.6187 的非常基本的 Swashbuckle.AspNetCore 5.2.1 站点生成 csharp 或 powershell 客户端是否有另一种可以协同工作的软件版本组合,或者有没有办法让 json 输出包括服务器信息里面有api的位置吗?
PS C:\projects\MySwagger\scripts> autorest --input-file=http://myswagger.api.local/swagger/v1/swagger.json --powershell --output-folder=CSharp_MySwagger --namespace=MySwaggerNamespace --v3
AutoRest code generation utility [cli version: 3.0.6187; node: v10.14.1, max-memory: 8192 gb]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core 'C:\Users\MySwagger\.autorest\@autorest_core@3.0.6262\node_modules\@autorest\core\dist' (3.0.6262)
Loading AutoRest extension '@autorest/powershell' (~2.1.327->2.1.372)
Loading AutoRest extension '@autorest/remodeler' (~2.1.0->2.1.27)
FATAL: Error: Operation http-operation:0 : /api/EventItems has no servers entry (Are you missing 'host' or 'servers' information in your source file?)
Error: Plugin remodeler reported failure.