Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gonzalad opened this issue Jan 17, 2025 · 0 comments
Open

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

gonzalad opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gonzalad
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants