You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by "yhs0092 (GitHub)" <gi...@apache.org> on 2018/08/22 08:32:10 UTC
[GitHub] [incubator-servicecomb-java-chassis] yhs0092 opened pull
request #882: [SCB-206] Support setting produces and consumes by @Api
Follow this checklist to help us incorporate your contribution quickly and easily:
- [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
- [x] Each commit in the pull request should have a meaningful subject line and body.
- [x] Format the pull request title like `[SCB-XXX] Fixes bug in ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA issue.
- [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- [x] Run `mvn clean install` to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
- [x] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
---
See details in [SCB-206](https://issues.apache.org/jira/browse/SCB-206)
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] wujimin commented on
pull request #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "wujimin (GitHub)" <gi...@apache.org>.
ok
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] liubao68 closed pull
request #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "liubao68 (GitHub)" <gi...@apache.org>.
[ pull request closed by liubao68 ]
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] yhs0092 commented on
pull request #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "yhs0092 (GitHub)" <gi...@apache.org>.
Both `Api` and `RequestMapping` can set consumes and produces but their processors' behavior is different. `ApiProcessor` only set consumes/produces when there is no config in Swagger, but `RequestMappingClassAnnotationProcessor` will set consumes/produces no matter there is config in Swagger.
In other words, `ApiProcessor` cannot over write the config but `RequestMappingClassAnnotationProcessor` can. So `RequestMapping` takes higher priority.
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] wujimin commented on
pull request #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "wujimin (GitHub)" <gi...@apache.org>.
i can not find the priority control
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] coveralls commented on
issue #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "coveralls (GitHub)" <gi...@apache.org>.
[](https://coveralls.io/builds/18605986)
Coverage increased (+0.04%) to 86.223% when pulling **4b4de8c245c8539ad909d60a88b270830a6e79ed on yhs0092:support_setting_produces_and_consumes_by_Api** into **3c7f128c9e50239398847126e7857a8db98d85b4 on apache:master**.
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] yhs0092 commented on
pull request #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "yhs0092 (GitHub)" <gi...@apache.org>.
Yes, except that users set blank string into it directly. Should we consider such situation?
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] liubao68 commented on
pull request #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "liubao68 (GitHub)" <gi...@apache.org>.
seems s can never be empty
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] coveralls commented on
issue #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "coveralls (GitHub)" <gi...@apache.org>.
[](https://coveralls.io/builds/18636263)
Coverage increased (+0.0006%) to 86.187% when pulling **43816afb940440b53840482b9f068390b9e45c78 on yhs0092:support_setting_produces_and_consumes_by_Api** into **3c7f128c9e50239398847126e7857a8db98d85b4 on apache:master**.
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] liubao68 commented on
pull request #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "liubao68 (GitHub)" <gi...@apache.org>.
Can you add an integration test for this feature?
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org
[GitHub] [incubator-servicecomb-java-chassis] yhs0092 commented on
pull request #882: [SCB-206] Support setting produces and consumes by @Api
Posted by "yhs0092 (GitHub)" <gi...@apache.org>.
Integration test has been added.
In order to test the consumes, I change `BodyProcessor` in `BodyProcessorCreator.java` to let users can specify request Content-Type(Currently it's `application/json` mandatorily).
[ Full content available at: https://github.com/apache/incubator-servicecomb-java-chassis/pull/882 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org