swagger-api / swagger-api/swagger-codegen

[ObjC] What parameter changes the name of the generated pod spec? The command I'm using says that -p package-name is incorrect

Open
#9,678 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

I want to name the output of running the swagger codegen tool to have the pod name (and the top level file called) not OpenAPIClient. I want it to be something else. I managed to this in Java by running the command.

npx openapi-generator generate -i afs.json -g java -D apiPackage=org.package.name --model-package org.package.name --artifact-id artifactID -o "Path"

and this generates the correct packages and names.

I'm not sure how to do this in ObjC. I thought I would need to do

npx openapi-generator generate -i afs.json -g objc -D apiPackage=org.package.name.api --model-package org.package.name.models --artifact-id artifactID-p --package-name f -o D:\codegen\

however that tells me that this is an incorrect parameter. There's no information I can find about how to do this.

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 ObjC generator's command-line options and compare them with the example command using afs.json and -o. Confirm which supported option controls the generated pod name and top-level file, then document the valid invocation or clarify that no such option exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
cli, tooling
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.