[BUG] Allow support for OpenAPI Generator snapshot versions through the openapitools.json file
🐛 Bug Report:
Describe the bug
I would like to use the 6.0.0-SNAPSHOT version of the OpenAPI generator package while using the openapitools.json configuration file.
Steps to Reproduce
Steps to reproduce the behavior:
- Adjust the
openapitools.jsonconfiguration file to use the snapshot version:
{
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "6.0.0-SNAPSHOT",
"generators": {
"client": {
"generatorName": "typescript-angular",
"glob": "openapi.yaml",
"output": "src/app/api"
}
}
}
}
- Attempt to generate a client using the configuration using
npx openapi-generator-cli generateor whatever current script you have in place. - View the output in the cli:

- See error
Expected behavior
I hoped that I would be able to use a snapshot version of the openapi-generator library. Unfortunately that does not seem to be the case. Perhaps I need to adjust my configuration, but I can't find the documentation for using snapshot versions, only for creating a snapshot version if my client library.
Operation System (please complete the following information):
- Windows 10 Pro 19042.1526
Package System (please complete the following information):
- Version 2.4.26
I am having the same issue. Isn't there a way to use a locally build SNAPSHOT version?
You can set downloadUrl:
{
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "6.0.0-20220330.230127-109",
"repository": {
"downloadUrl": "https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.0.0-SNAPSHOT/openapi-generator-cli-${versionName}.jar"
}
}
}