Auto-generated .Net C# client using AutoRest

Comments

3 comments

  • Avatar
    Moti Granovsky

    Hi Andres, could you post a  screenshot of the error? That google drive link is inaccessible (private).

    0
    Comment actions Permalink
  • Avatar
    Andres CIchero

    I corrected the permissions of the links (also the one of the JSON file).

    Thanks for answering.

    0
    Comment actions Permalink
  • Avatar
    Moti Granovsky

    Hi Andres,

    I opened up the file locally (using Visual Studio Code) and found some issues that made the JSON invalid:

    1. In the header description of all endpoints, there's a Markdown-syntax link reference to the Sisense REST API documentation. This is valid for YAML (which is the syntax used for Sisense swagger) but isn't valid in JSON. You can run a search+replace for this exact string: "[API tutorial](http://developer.sisense.com/display/API2/Using+the+REST+API)" (replacing it with nothing) to remove all occurrences of this 
    2. I also noticed a few (3-4) newline characters breaking string values midway, once those were fixed (and the entire JSON was a single block) it was valid and could be formatted.

    I believe if you do the same, and ensure your JSON file is fully valid (no red errors show up when opening it in VSCode or other JSON-compatible editor) then AutoRest should be able to parse it correctly and the error will be gone.

    0
    Comment actions Permalink

Please sign in to leave a comment.