[Question] How are placeholders passed to config?
@kay-schecker is already working on this.
Since Apr 27, 2022.
Assessment
This issue has not been assessed yet.
Description
Hi.
When using config via openapitools.json, the documentation states that placeholders are in use, e.g for. cwd and name:
{
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "5.1.1",
"generators": { // optional
"my-generator":
"generatorName": "typescript-angular",
"inputSpec": "#{cwd}/specs/${name}.json",
"output": "#{cwd}/output/#{name}",
}
}
}
}
My question is how do I pass the placeholders in the command? Ive tried
yarn run openapi-generator-cli generate --generator-key my-generator --name my-spec, but the name property doesnt get through to the generator:
[error] The spec file is not found: {..this path is correct (cwd)....}/specs/.json <---- name is missing
I could use something like envsubst, but that seems unnecessary?
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 208
- Avg merge
- 7h 12m
- Merged PRs (30d)
- 6
Contributor guide
No contributing guide indexed for this repository
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.
More from OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependencies Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug
OpenAPITools/openapi-generator-cli#1213 · 1 assignee ·
-
bug
OpenAPITools/openapi-generator-cli#1190 · 1 assignee ·
-
bug
OpenAPITools/openapi-generator-cli#1138 · 1 comment · 1 assignee ·
-
bug
OpenAPITools/openapi-generator-cli#1094 · 1 comment · 1 assignee ·
All issues in OpenAPITools/openapi-generator-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·