RAML-to-Swagger-Converter icon indicating copy to clipboard operation
RAML-to-Swagger-Converter copied to clipboard

Failing to convert example json referenced in RAML

Open ab73863 opened this issue 5 years ago • 0 comments

Hi,

I tried run the utility against the Example "jukebox-api.raml" . When executing I am getting the following exception org.codehaus.jettison.json.JSONException: A JSONObject text must begin with '{' at character 1 of jukebox-include-album-songs.sample at org.codehaus.jettison.json.JSONTokener.syntaxError(JSONTokener.java:463) at org.codehaus.jettison.json.JSONObject.<init>(JSONObject.java:206) at org.codehaus.jettison.json.JSONObject.<init>(JSONObject.java:313) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.getResponseInfo(RAMLtoSwagger.java:648) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.getMethodsDescription(RAMLtoSwagger.java:493) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.getSpecificResourceData(RAMLtoSwagger.java:455) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.retMethodsData(RAMLtoSwagger.java:425) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.retMethodsData(RAMLtoSwagger.java:438) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.retMethodsData(RAMLtoSwagger.java:438) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.getResources(RAMLtoSwagger.java:338) at org.macrulez.utils.raml2swagger.RAMLtoSwagger.convertToSwagger(RAMLtoSwagger.java:393) at org.macrulez.utils.raml2swagger.App.run(App.java:60) at org.macrulez.utils.raml2swagger.App.main(App.java:36)

The JSON content within "jukebox-include-album-songs.sample" looks to be valid but still the converter is failing to identify it as an valid JSON.

Could you please help in resolving this issue.

Regards Arun

ab73863 avatar May 21 '19 00:05 ab73863