Closed luisrudge closed 9 years ago
Currently there's no support for swagger version 2. Right now, it's 1.2 only. I am currently adding support for other swagger version (re-factoring the code to detect the swagger spec version etc) and building support for 1.1 (as I need support for it).
Once that code is checked in, it should be easy to build in support for 2.0, if you fancy helping :]
Great. How are you generating the api docs?
Right now, the swagger spec c# files are generated manually. With a little help from the swashbuckle project! Unless you have a better way, if so, i'd love to hear it.
For example: https://github.com/skrusty/dotswaggen/blob/master/dotswaggen/Swagger/SwaggerSpec.cs
You're manually generating the swagger json?
No? We don't generate any swagger json. We convert swagger json into something else, like C# classes.
Yeah. I was asking about your use case, not this project's. Are you using swagger to document any of your apis?
I'm using swagger to documents APIs using swashbuckle and using dotswaggen to generate c# libs against those APIs.
I also use dotswaggen to generate code for the Asterisk ARI API (which is why i am coding support for 1.1, as it still uses it).
Yeah. That was my question. I'm trying Swashbuckle as well. Thanks!
I'm not sure this is compatible with 2.0. I'm having this error:
this is the json file: