wujimin closed pull request #703: [SCB-531] change demo to test schema without x-java-interface declared. URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/703
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/demo/demo-schema/src/main/resources/microservices/pojo/server.yaml b/demo/demo-schema/src/main/resources/microservices/pojo/server.yaml index 543f39fbf..ac4d37e62 100644 --- a/demo/demo-schema/src/main/resources/microservices/pojo/server.yaml +++ b/demo/demo-schema/src/main/resources/microservices/pojo/server.yaml @@ -129,7 +129,8 @@ paths: - name: index in: query required: true - type: number + type: integer + format: int32 - name: user in: body schema: @@ -187,7 +188,7 @@ paths: definitions: Error: type: object - x-java-class: org.apache.servicecomb.core.exception.CommonExceptionData + x-java-class: org.apache.servicecomb.swagger.invocation.exception.CommonExceptionData properties: message: type: string diff --git a/demo/demo-schema/src/main/resources/microservices/pojo/smartcare.yaml b/demo/demo-schema/src/main/resources/microservices/pojo/smartcare.yaml index 49a8ac93e..0879c3bda 100644 --- a/demo/demo-schema/src/main/resources/microservices/pojo/smartcare.yaml +++ b/demo/demo-schema/src/main/resources/microservices/pojo/smartcare.yaml @@ -21,7 +21,8 @@ swagger: '2.0' info: title: smartcare test version: 1.0.0 - x-java-interface: org.apache.servicecomb.demo.smartcare.SmartCare +# x-java-interface is optional, remove it should works well, but sometimes need to generate more class in memory +# x-java-interface: org.apache.servicecomb.demo.smartcare.SmartCare # the domain of the service #host: api.uber.com ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services