zallek / swagger-diff

Compute the diff between two swagger API specifications.
https://zallek.github.io/swagger-diff/
58 stars 30 forks source link

not a valid JSON Schema? #32

Open gregoks opened 5 years ago

gregoks commented 5 years ago

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