web stats
Mirth Community - View Single Post - REST Endpoints client library
View Single Post
Old 06-14-2016, 11:23 AM
pcristini pcristini is offline
What's HL7?
Join Date: Jun 2016
Posts: 5
pcristini is on a distinguished road
Default REST Endpoints client library

I'm trying to generate client classes to access the REST endpoints exposed in 3.4 however all the swagger related generators cannot parse the swagger.json file properly.

I've tried Visual Studio's built in AutoREST as well as http://editor.swagger.io/

Here's the error from AutoREST
[Info]AutoRest Core
[Info]Initializing code generator.
[Info]Successfully initialized CSharp Code Generator 1.0.5584.22489
[Info]Initializing modeler.
[Info]Successfully initialized Swagger Modeler 1.0.5584.22490
[Info]Parsing swagger json file.
[Fatal]Error parsing swagger file. Error converting value "ref" to type 'System.Nullable`1[Microsoft.Rest.Modeler.Swagger.Model.SwaggerDataType]'. Path 'type', line 6, position 16.
Exception: There was an error during code generation when trying to add a client for the REST API
Generating client code and adding to project failed
Reply With Quote