Skip to content

graphql-mesh is unable to properly generate types from openapi yaml file, generates JSON types instead. #3942

Closed
@gablabelle

Description

@gablabelle

Issue workflow progress

Progress of the issue based on the Contributor Workflow

Make sure to fork this template and run yarn generate in the terminal.

Please make sure Mesh package versions under package.json matches yours.

  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug

Unable to properly generate types, returns JSON instead.

Maybe there is a problem with the YAML file but it seems to validate OK in online validators.

To Reproduce
Steps to reproduce the behavior:

I have setup a codesandbox here:
https://codesandbox.io/s/staging-lake-ervh5v?file=/swagger.yaml

Screen Shot 2022-05-17 at 12 05 40

Expected behavior

Graphql-mesh should generate the proper type.

Environment:

  • Packages

    "@graphql-mesh/cli": "0.70.3",
    "@graphql-mesh/openapi": "0.25.6",
    "@graphql-mesh/transform-resolvers-composition": "0.12.53",
    "graphql": "16.0.1",
    "graphql-fields": "2.0.3"

Many thanks for your time and help.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions