yarax/swagger-to-graphql

[BUG] Wrong description placement

eddiecooro opened this issue · 2 comments

in a *.graphql file when we have descriptions outside of types or inputs, the opening and closing """ should be on their own lines.

Take a look at this example:
capture

I've fixed the above one(at line 107) manually.

Just to add the specification link:
http://facebook.github.io/graphql/June2018/#sec-Descriptions

But I don't think that is a real bug, this schema is actually generated directly by graphql-js (https://github.com/yarax/swagger-to-graphql/blob/master/test/fixture-test.js#L16) so, even if the spec are not really accurate here, this should works 😉

yarax commented

@fabien0102 is right, swagger2graphql has nothing to do with this