Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Generate Graphql schema without paths #495

Description

@naulacambra

Describe the bug
I have an OpenAPI definition, Master-OB-OpenAPI.json, which doesn't have any path in it, only schema definitions. I've tried to generate the Graphql schema file, but it only generated this

schema {
  query: QueryPlaceholder
}

"""Placeholder object"""
type QueryPlaceholder {
  """Placeholder field"""
  message: String
}

To Reproduce
Steps to reproduce the behavior:

  1. Execute npx openapi-to-graphql .\Master-OB-OpenAPI.json --save output.sdl
  2. Inspect the output.sdl file
  3. See the output written above

Expected behavior
I would expected an sdl file with all the schemas in it

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions