Skip to content
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

Support of oneOf #57

Open
yarax opened this issue Apr 9, 2018 · 14 comments
Open

Support of oneOf #57

yarax opened this issue Apr 9, 2018 · 14 comments

Comments

@yarax
Copy link
Owner

yarax commented Apr 9, 2018

No description provided.

@wh00527
Copy link

wh00527 commented Jan 9, 2019

any progress? I got same issue, Don't know how to handle schema {"allOf".

@alfirin
Copy link

alfirin commented Jul 29, 2019

Same issue over here.

Did you have the time to look upon it?

Thanks

@tot-ra
Copy link

tot-ra commented Nov 7, 2019

+1 can't convert schema with inheritance (allOf) :(

Error: RequestBody is formData, expected an object schema, got "{"allOf":[{"type":"object","properties":{

stacktrace..

 at Object.exports.getParamDetailsFromRequestBody ./node_modules/swagger-to-graphql/lib/swagger.js:122:19)
at ./node_modules/swagger-to-graphql/lib/swagger.js:177:27
at Array.forEach (<anonymous>)
at ./node_modules/swagger-to-graphql/lib/swagger.js:158:28
at Array.forEach (<anonymous>)
at Object.exports.getAllEndPoints (./node_modules/swagger-to-graphql/lib/swagger.js:156:31)

@constantinov
Copy link

constantinov commented Nov 19, 2019

+1 was not able to convert schema with allOf inheritance

@kargalskaya
Copy link

+1...

@vitorcamachoo
Copy link

vitorcamachoo commented Jan 20, 2020

+1

Any update ?

@738
Copy link

738 commented Feb 24, 2020

+1

@evgenisokolov
Copy link

  • 1 allOf issue

@newbeb
Copy link

newbeb commented Apr 21, 2020

The question here for allOf, oneOf, anyOf from the OpenAPI spec is how strict to be from a validation POV. The other question is if we want to use GraphQL Unions or just merge the objects into a meta-object.

@thees
Copy link

thees commented Nov 16, 2020

+1

@gablabelle
Copy link

Has some got a solution or a workaround ... We would like to automate the schema generation but we are currently writing our schema manually because of this. 😢

@henrikrudstrom
Copy link

+1

@gablabelle
Copy link

Has some got a solution or a workaround ... We would like to automate the schema generation but we are currently writing our schema manually because of this. 😢

For those interested we are now using https://graphql-mesh.com/ in order to generate a schema file from our swagger files. Works like a charm.

@michaelremes
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests