OpenAPITools / OpenAPITools/openapi-generator-cli
[Question] How are placeholders passed to config?
@kay-schecker ci sta già lavorando.
Dal 27/4/2022.
- Lingua principale
- TypeScript
- Stelle
- 2k
- Fork
- 208
- Merge medio
- 7h 12m
- PR unite (30g)
- 6
Descrizione
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?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.