yarax / swagger-to-graphql

Swagger to GraphQL API adapter
MIT License
924 stars 150 forks source link

error #132

Closed rmros closed 5 years ago

rmros commented 5 years ago

{ SyntaxError: Error resolving $ref pointer "/home/ramin/Desktop/irsha/irsh-back/swagger.json#/definitions/invoices". Token "invoices" does not exist. at Pointer.resolve (/home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/pointer.js:87:17) at $Ref.resolve (/home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/ref.js:83:18) at $Refs._resolve (/home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/refs.js:155:15) at inventory$Ref (/home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:98:23) at /home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:73:11 at Array.forEach () at crawl (/home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:67:12) at /home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:76:11 at Array.forEach () at crawl (/home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:67:12) at /home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:76:11 at Array.forEach () at crawl (/home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:67:12) at /home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:76:11 at Array.forEach () at crawl (/home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:67:12) at /home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:76:11 at Array.forEach () at crawl (/home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:67:12) at /home/ramin/.nvm/versions/node/v11.9.0/lib/node_modules/swagger-to-graphql/node_modules/json-schema-ref-parser/lib/bundle.js:76:11 at Array.forEach () toJSON: [Function: errorToJSON], inspect: [Function: errorToString] }

yarax commented 5 years ago

So it just tells that there is a broken reference to invoices model in your schema