web stats
REST Endpoints client library - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-14-2016, 10: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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 08:51 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation