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

Develop a code generator for Mocca clients #23

Open
fabiocarvalho777 opened this issue Jul 27, 2021 · 0 comments
Open

Develop a code generator for Mocca clients #23

fabiocarvalho777 opened this issue Jul 27, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@fabiocarvalho777
Copy link
Member

Mocca code generator should take as input a GraphQL schema file, and configuration, and produce as output the Mocca client, plus all required POJOs (used in the operation method parameters) and DTOs (used in the operation method return types).

Requirements

  1. Take as input a GraphQL schema file plus optional configuration
  2. Produce as output:
    1. The Mocca client Java interface
    2. All required POJOs (used in the generated client interface operation method parameters)
    3. All required DTOs (used in the generated client interface operation method return types)
  3. The code generator should be written as a Java library (it should not have an entry point)
  4. A second module should be created as a CLI application to execute the code generator
  5. Mocca code generator library should be added as module mocca-codegen
  6. Mocca code generator CLI should be added as module mocca-codegen-cli
  7. A Maven or Gradle plugin might be developed in the future, but they are out of scope for this issue
  8. End user documentation should be updated explaining how to use Mocca code generator
@fabiocarvalho777 fabiocarvalho777 added the enhancement New feature or request label Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant