Open semso-software opened 5 years ago
The problem is your
"operationGenerationMode": "SingleClientFromPathSegments",
Not sure whether one of the available modes works good with your spec. Otherwise you'd need to implement your own...
Available modes: https://github.com/RSuter/NSwag/blob/c2c3ad24fd1ef4e434a4a2fdc7c224c0c6f61771/src/NSwag.Commands/Commands/CodeGeneration/OperationGenerationMode.cs
The spec seems to be fine.
Thank you for looking into this. Is there any documentation on writing our own implementation?
Just implement the interface to your liking and assign an instance in the settings property
Hello @RSuter
I was trying generate a c# client class from a swagger json file. The tool generates the client nicely but it won't build because of brackets in the method names.
My nswag file:
The json Sorry cannot post the json body because it's to long, here by the URI http://api.opencart-api.com/demo/admin/index.json
Am i missing an parameter or is the provided json invalid?