swagger-api / swagger-api/swagger-codegen
[Apex] ApiTest class syntax error
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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