hufeng commented on a change in pull request #151: 过滤private field不翻译
URL: https://github.com/apache/dubbo-js/pull/151#discussion_r343992841
##########
File path: packages/interpret-cli/src/transfer/bean/to-vo.ts
##########
@@ -62,21 +64,30 @@ export async function toBeanClass(
if (typeDef.fields[fieldName].isArray) {
filedType = typeDef.fields[fieldName].elementType.name;
}
+ const regex = new RegExp(
+ `^(get|set${fieldName.slice(0, 1).toUpperCase()}${fieldName.slice(1)})$`,
Review comment:
OK
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]