swagger-api / swagger-api/swagger-codegen

[Apex] ApiTest class syntax error

Open
#11,003 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

When trying to deploy the generated apitest class, all of them got the same syntax error of "Missing ')' at ';'

Swagger-codegen version

Generated online via https://generator3.swagger.io/api/generate.

Parameters used:

  "lang" : "apex",
  "type" : "CLIENT",
  "codegenVersion" : "V2"
Swagger declaration file content or url

client = new SwagClient();
api = new SwagXxxxxxApi(client);
((Swagger.ApiKeyAuth) client.getAuthentication('ApiKeyAuth');
client.setApiKey('foo-bar-api-key');

Suggest a fix/enhancement

No suggestion. Not familiar with the code gen.

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

Reproduce the generated Apex client through generator3.swagger.io using lang "apex", type "CLIENT", and codegenVersion "V2". Inspect the generated ApiTest class and the reported "Missing ')' at ';'" syntax error; done means the generated class deploys without that error.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.