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 2022/05/26 10:35:51 UTC

[GitHub] [servicecomb-java-chassis] diwenzheng opened a new issue, #3006: 2.7.2 我看tag介绍 并没有写 为何移除swagger invocation啊

diwenzheng opened a new issue, #3006:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3006

    而且 目前有一个问题是 使用 自定义错误码 返回 必须携带message 即使 message写了 null  message 变成了null,能否对message支持空逻辑?
   ![image](https://user-images.githubusercontent.com/60613511/170471498-b8b2efab-9490-440c-bea1-0284c983384a.png)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] diwenzheng commented on issue #3006: 2.7.2 我看tag介绍 并没有写 为何移除swagger invocation啊

Posted by GitBox <gi...@apache.org>.
diwenzheng commented on issue #3006:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3006#issuecomment-1139208497

   > 你的意思是json序列化的时候,不带为空的属性名称?
   
   对的,这里也加上一个这样的注解,给予message为null不序列化


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3006: 2.7.2 我看tag介绍 并没有写 为何移除swagger invocation啊

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3006:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3006#issuecomment-1140580471

   需要自定义 RestObjectMapper 来满足这个要求。 不过通常不建议这么做,保持编解码的标准性有时候会减少很多问题。 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] diwenzheng commented on issue #3006: 2.7.2 我看tag介绍 并没有写 为何移除swagger invocation啊

Posted by GitBox <gi...@apache.org>.
diwenzheng commented on issue #3006:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3006#issuecomment-1140768443

   > 需要自定义 RestObjectMapper 来满足这个要求。 不过通常不建议这么做,保持编解码的标准性有时候会减少很多问题。
   
   我的意思 也和上面的 code 一样 加入 @JsonInclude 注解


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3006: 2.7.2 我看tag介绍 并没有写 为何移除swagger invocation啊

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3006:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3006#issuecomment-1141573755

   这是单点的特殊性变化,感觉不太合适。 如果属性为null的时候,不序列化, 也是兼容的, 那么可以考虑总体上保持这个策略。 但是目前不知道这样做有没有什么副作用或者兼容性问题。 


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3006: 2.7.2 我看tag介绍 并没有写 为何移除swagger invocation啊

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #3006:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3006#issuecomment-1139203037

   你的意思是json序列化的时候,不带为空的属性名称?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] diwenzheng commented on issue #3006: 2.7.2 我看tag介绍 并没有写 为何移除swagger invocation啊

Posted by GitBox <gi...@apache.org>.
diwenzheng commented on issue #3006:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3006#issuecomment-1141592033

   > 这是单点的特殊性变化,感觉不太合适。 如果属性为null的时候,不序列化, 也是兼容的, 那么可以考虑总体上保持这个策略。 但是目前不知道这样做有没有什么副作用或者兼容性问题。
   
   message为null的时候,在2.5.0的版本中是会变成null返回的。是会序列化的。


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] diwenzheng commented on issue #3006: 2.7.2 我看tag介绍 并没有写 为何移除swagger invocation啊

Posted by GitBox <gi...@apache.org>.
diwenzheng commented on issue #3006:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3006#issuecomment-1138394408

   @liubao68  


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org