自动生成客户端代码生成 [英] Autorest client code generation

查看:87
本文介绍了自动生成客户端代码生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个swagger json文件。我正在使用AutoRest在C#中创建客户端代码。



我尝试了什么:



i我正在使用follwing commad,

 AutoRest.exe -Namespace MyNamespace -Input swagger.json 



但我是获取错误生成客户端模型时出错:请指定一个类型为System.Byte []的字段,以将文件内容反序列化为



任何人都知道什么是问题。



谢谢...

解决方案

如果你谷歌错误你会看到确切的抛出该异常的代码。例如,主要的AutoRest / OperationBuilder.cs·matt-gibbs / AutoRest ·GitHub [ ^ ]

Hi,

i have swagger json file. I am using AutoRest to create client side code in C#.

What I have tried:

i am using follwing commad for that,

AutoRest.exe -Namespace MyNamespace -Input swagger.json


but i am getting error "Error generating client model: Please specify a field with type of System.Byte[] to deserialize the file contents to"

Any one have idea what is the issue.

Thanks...

解决方案

If you google the error you'll see the exact code that throws that exception. For example, AutoRest/OperationBuilder.cs at master · matt-gibbs/AutoRest · GitHub[^]


这篇关于自动生成客户端代码生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆