Skip to content

[FEATURE] Use environment variables in openapitools.json file #860

Open
@gonzalad

Description

@gonzalad

Could we provide a way to use environment variables in the openapitools.json file ?

This would provide an easy way to pass credentials when using a corporate repository for instance.

i.e.

{
    "generator-cli": {
        "repository": {
            "queryUrl": "https://${username}:${password}@artifactory.mycorp.com/maven-central/select?q=g:${group.id}+AND+a:${artifact.id}&core=gav&start=0&rows=200",
            "downloadUrl": "https://${username}:${password}@artifactory.mycorp.com/maven-central/${groupId}/${artifactId}/${versionName}/${artifactId}-${versionName}.jar"
        }
    }
}

Related issue:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions