OpenAPITools / OpenAPITools/openapi-generator

Using graphql-schema generator gives files with extention ".graphql", However spring requires with extenstion ".graphqls" files

Open
#4,871 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Schema: GraphQL
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Description

Using graphql-schema generator gives files with extention ".graphql", However spring requires with extenstion ".graphqls" files

openapi-generator version

openapi-generator-cli
Version 4.2.2

OpenAPI declaration file content or url

http://petstore.swagger.io/?displayOperationId=false

Screenshot 2019-12-27 at 12 31 49 PM
Command line used for generation

openapi-generator generate -i petStore-OpenAPI.yaml -g graphql-schema -o ./codeGen

Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

Can we have the Files generated in ".graphqls" extension as well so it can be used with spring based applications.
https://www.baeldung.com/spring-graphql

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the graphql-schema generator invoked by openapi-generator generate -i petStore-OpenAPI.yaml -g graphql-schema -o ./codeGen, and inspect which generated files receive their extension. Done means the generator produces files usable by Spring with the requested .graphqls extension; verify the generated output against the reported command.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, java, spring
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.