convert underscore to dash implicitely in _clean_dict may introduce in un-expected labels
Closed this issue · 5 comments
Hi @haxsaw
The replacement in https://github.com/haxsaw/hikaru/blob/main/hikaru/generate.py#L84 may implicitely convert a custom label my_app
into my-app
, which is not needed in most scenarios. Is this a designed feature or a bug?
Nuts. Yeah, this was to solve a particular problem, but I didn't think it through for all cases. I'll come up with a fix.
this was to solve a particular problem
Would you mind to share some details of the problem?
I hope you saw the new release that has a patch for your issue. Let me know if that solves it.
Hi @haxsaw sorry for the late responding. Since we are still using version 0.5.1b0, and upgrading to the latest would cause a lot of breaks, I cant test your fix in production, and work around this issue by using label names with dashs instead of with underlines. Howeveer, as what I saw in unit tests in other projects, I believe this fix works in a lot of scenarios, so feel free to close this issue.