[
https://issues.apache.org/jira/browse/SCB-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
YaoHaishi updated SCB-1392:
---------------------------
Description:
Currently, if different java bean param types are given the same param type
name by @ApiModel annotation, there is no error thrown and the microservice
instance can boot up and process requests, which may cause confusing runtime
error.
The microservice schema generating mechanism should check the duplicated param
types and warn the users of them.
was:
Multiple classes have the same apimodle, and class will occur when generating
schemaids. Join the check at startup and throw an exception when this problem
occurs.
> If Multiple java bean param types are given the same name by using @ApiModel,
> there should be error tips in microservice's booting log
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SCB-1392
> URL: https://issues.apache.org/jira/browse/SCB-1392
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Java-Chassis
> Affects Versions: java-chassis-1.2.1
> Reporter: YongLiang Guo
> Assignee: YongLiang Guo
> Priority: Major
> Fix For: java-chassis-1.3.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Currently, if different java bean param types are given the same param type
> name by @ApiModel annotation, there is no error thrown and the microservice
> instance can boot up and process requests, which may cause confusing runtime
> error.
> The microservice schema generating mechanism should check the duplicated
> param types and warn the users of them.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)