diff --git a/openworld/sdk/generator/client/visitors/sdk_info.py b/openworld/sdk/generator/client/visitors/sdk_info.py index 7ddfba46..35160d8e 100644 --- a/openworld/sdk/generator/client/visitors/sdk_info.py +++ b/openworld/sdk/generator/client/visitors/sdk_info.py @@ -27,7 +27,7 @@ def get_sdk(parser: OpenAPIParser, model_path: Path) -> dict[str, object]: config.read(f"{Path(__file__).parent}/sdk.config") api = config["sdk"]["namespace"] - classname = "".join([word.capitalize() for word in re.findall(r"[a-zA-Z]+", api)]) + classname = "".join([word.capitalize() for word in re.findall(r"[a-zA-Z0-9]+", api)]) namespace = classname.lower() classname += "Client" version = config["sdk"]["version"] diff --git a/openworld/sdk/generator/scripts/build-package.sh b/openworld/sdk/generator/scripts/build-package.sh index a6013f5e..76718d9a 100755 --- a/openworld/sdk/generator/scripts/build-package.sh +++ b/openworld/sdk/generator/scripts/build-package.sh @@ -40,7 +40,7 @@ while getopts ":n:v:i:" OPTION; do done; validate_arguments normalized_namespace=$(echo "$namespace"|sed -e 's/\(.*\)/\L\1/') -normalized_namespace=$(echo "$normalized_namespace"|sed -e 's/[^a-z0-9]//g') +normalized_namespace=$(echo "$normalized_namespace"|sed -e 's/[^a-zA-Z0-9]//g') cd .. &&\ go install github.com/google/addlicense@latest &&\