-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ #3
Comments
[UPDATE] var NAME_RX = /^[_a-zA-Z][_a-zA-Z0-9]*$/; In fact that is the error message
So, any idea how to get rid of this - without changing the swagger (and all autogen code)? |
Hi, thanks for the good issue! |
@yarax You are welcome, thank you it is fixed now (no errors at I have tried Thank you. |
Yes, types can contain circular data structures (unlike Input Type), but in the result schema they are all together |
@yarax ah so! And how to serialize / deserialize this schema? With your tool I can serve a REST api from swagger to GraphQL and it's amazing, but supposed that I want to serialize the scheme in order to provide it to 3rdparty, how do to that? Thanks! |
It's not possible yet, but soon will be released a version compatible with https://github.com/nodkz/graphql-compose and then it will be possible to generate pure GraphQL types with its help from schema. #2 |
But it sounds a bit strange to give types for 3rdparty because types are coupled with resolvers and resolvers should be implemented into your code base. |
@yarax I got it, I was considering |
So I would probably advice you to share GraphiQL interface for your API clients, like github has done it https://developer.github.com/early-access/graphql/guides/accessing-graphql/ |
@yarax yes that is the right way. Thank you for the fix. |
@yarax sorry one more question, when running the schema from
in the |
Just have run fresh swagger-to-graphql against your schema (just replaced default petstore.json) https://playground.musixmatch.com/swagger.json and able to make queries http://storage2.static.itmages.com/i/16/1104/h_1478268736_3020583_41fa51db8e.png |
try maybe to reinstall node modules |
@yarax I have the same issue, can we use something like this |
I'm experiencing the same issue because some request headers contain a |
@0xR I meet the same issue. Do you fix that? |
@fgcui1204 which version do you use? Should be fixed already |
The PR #75 was not merged yet. I'll have a look to see if the tests pass. |
@fgcui1204 I merged #75, can you try the latest master of |
@0xR Thanks very much |
I'm trying to run against this schema from Musixmatch SDK
but I get
Thank you.
The text was updated successfully, but these errors were encountered: