swagger-diff icon indicating copy to clipboard operation
swagger-diff copied to clipboard

not a valid JSON Schema?

Open gregoks opened this issue 5 years ago • 0 comments

Hello,

I have ran swagger-diff on my swagger which is valid and working but I get the following error without too much information:

swagger-diff{"name":"SyntaxError","message":""http://myservice.mycompany.com/swagger/docs/v1" is not a valid JSON Schema","stack":"SyntaxError: "http://myservice.mycompany.com/swagger/docs/v1" is not a valid JSON Schema\n at Function.ono [as syntax] (D:\Azure-Agents\Agent1\_work\_tasks\swagger-diff_d0b32dd5-f8bd-4118-8e66-699ad33189a2\1.2.1\node_modules\ono\lib\index.js:61:20)\n at D:\Azure-Agents\Agent1\_work\_tasks\swagger-diff_d0b32dd5-f8bd-4118-8e66-699ad33189a2\1.2.1\node_modules\json-schema-ref-parser\lib\index.js:106:19\n at process._tickCallback (internal/process/next_tick.js:109:7)"}

Can you point me where I can see the reason of the failure?

Thanks,

Greg

gregoks avatar Jul 23 '19 07:07 gregoks