Skip to content

Commit

Permalink
fix(generator): Spaces in API name. (#173)
Browse files Browse the repository at this point in the history
Co-authored-by: Omar Al-Jarrah <oaljarrah@expediagroup.com>
  • Loading branch information
OmarAlJarrah and Omar Al-Jarrah authored Aug 6, 2023
1 parent 0231cf9 commit 5ca3478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openworld/sdk/generator/client/visitors/sdk_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_sdk(parser: OpenAPIParser, model_path: Path) -> dict[str, object]:

classname = "".join(list(map(lambda s: s[0].upper() + s[1::] if len(s) > 1 else s[0].upper(), re.findall(r"[a-zA-Z0-9]+", config["sdk"]["namespace"]))))

api = "".join([" " + classname[index] if index and classname[index].upper() else classname[index] for index in range(len(classname))])
api = "".join([" " + classname[index] if index and classname[index].isupper() else classname[index] for index in range(len(classname))])

namespace = classname.lower()

Expand Down

0 comments on commit 5ca3478

Please sign in to comment.