swagger-to-graphql
swagger-to-graphql copied to clipboard
Support of oneOf
any progress? I got same issue, Don't know how to handle schema {"allOf".
Same issue over here.
Did you have the time to look upon it?
Thanks
+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)
+1 was not able to convert schema with allOf inheritance
+1...
+1
Any update ?
+1
- 1 allOf issue
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.
+1
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. 😢
+1
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.
+1