Forum Discussion

MeltingMosaic's avatar
MeltingMosaic
Occasional Contributor
8 years ago

Editor showing error, but jumping to the line doesn't seem to make sense

Hi, in my API: https://app.swaggerhub.com/api/MeltingMosaic/BungieNetProxy/1.0.0   I'm seeing this error in the editor: ptr must be a JSON Pointer   Clicking jump to line doesn't actually go an...
  • RonRatovsky's avatar
    8 years ago

    Hello there!

     

    Well, this is a bit embarrassing. You've hit an edge case.

     

    The error itself is confusing and it's definitely pointing to the wrong line.

    However, fear not!

     

    I've forked your API and solved the issue(s), you can find it at https://app.swaggerhub.com/api/webron/BungieNetProxy/1.0.0.

     

    The problem was with two references, at lines 481 and 505. The reference is missing a slash after the #.

    So

    - $ref: "#parameters/BungieNetApiKey"

     

    should be

    - $ref: "#/parameters/BungieNetApiKey"

     

    Fix those two, and you're golden!

     

    We're working on some major changes to the editor that will help avoid this issues... This update is very close.

     

    On a slightly different subject - Bungie.net? :)

     

    Thanks,

    Ron