Closed zhihuizhang17 closed 8 months ago
The package_from_name/1 method in Builder.Util currently extracts an incorrect package name when given a nested message name.
package_from_name/1
Builder.Util
For example:
> Util.package_from_name("testServiceV3.TestRequest.Payload") "testServiceV3.TestRequest"
It's supposed to return: testServiceV3
testServiceV3
This PR fixes the issue by keeping only the outermost module component as the package name for any nested message input.
fixes #20
Summary
The
package_from_name/1
method inBuilder.Util
currently extracts an incorrect package name when given a nested message name.For example:
It's supposed to return:
testServiceV3
This PR fixes the issue by keeping only the outermost module component as the package name for any nested message input.
fixes #20