You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/03/08 02:05:43 UTC

[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #2275: 由于编码过程中属性命名未按照驼峰命名,导致服务注册时只能成功注册第一个微服务,第二个微服务注册时提示swagger不一致。升级ServiceComb到2.1.3、2.1.5后均无法解决该问题

liubao68 edited a comment on issue #2275:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2275#issuecomment-792410304


   2.1.2版本做个一次修改, 可以比较语义的, 参考: https://github.com/apache/servicecomb-java-chassis/pull/2023/files
   
   你给的截图看起来swagger语义是一样的, 你能否结合上诉bug修改的内容, 调试下MicroserviceRegisterTask.java 看看是否语义比较返回了false? 
   
   相关代码:
   
   ```
         //if content of local schema and service center schema is equal then return true.
         if (!StringUtils.isEmpty(scSchemaContent) && !StringUtils.isEmpty(localSchemaContent)) {
           Swagger scSwagger = SwaggerUtils.parseSwagger(scSchemaContent);
           Swagger localSwagger = SwaggerUtils.parseSwagger(localSchemaContent);
           if (scSwagger.equals(localSwagger)) {
             return true;
           }
         }
   ```
   
   
   如果你能够提供一个重现的用例就更好了。 
   
    


----------------------------------------------------------------
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:
users@infra.apache.org