This is an automated email from the ASF dual-hosted git repository.

wujimin pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new da4c3cd  [SCB-531] change demo to test schema without x-java-interface 
declared.
da4c3cd is described below

commit da4c3cd2abc3acc7953ea99a5d1a4d421c07a34b
Author: wujimin <wuji...@huawei.com>
AuthorDate: Fri May 11 12:43:01 2018 +0800

    [SCB-531] change demo to test schema without x-java-interface declared.
---
 demo/demo-schema/src/main/resources/microservices/pojo/server.yaml   | 5 +++--
 .../demo-schema/src/main/resources/microservices/pojo/smartcare.yaml | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

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 543f39f..ac4d37e 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 49a8ac9..0879c3b 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

-- 
To stop receiving notification emails like this one, please contact
wuji...@apache.org.

Reply via email to