This is an automated email from the ASF dual-hosted git repository.
liubao pushed a change to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git.
from abdb21a [SCB-960] get context from future
new 9905748 [SCB-675] unify swagger property/parameter to make generator
logic simpler
new a5bbe14 [SCB-675] generate proto from swagger
new d2325c4 [SCB-675] add generate proto from swagger unit test
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
common/common-protobuf/pom.xml | 9 +
.../internal/converter/BodyParameterAdapter.java | 101 +++++++
.../internal/converter/PropertyAdapter.java | 85 ++++++
.../protobuf/internal/converter/ProtoMethod.java | 81 ++++++
.../protobuf/internal/converter/ProtoResponse.java | 24 +-
.../converter/SerializableParameterAdapter.java | 54 ++--
.../converter/SwaggerToProtoGenerator.java | 317 +++++++++++++++++++++
.../internal/converter/SwaggerTypeAdapter.java | 55 ++++
.../converter/TestSwaggerToProtoGenerator.java | 191 +++++++++++++
.../internal/converter/model/ProtoSchema.java | 98 +++++++
.../protobuf/internal/converter/model/Ref1.java | 7 +-
.../protobuf/internal/converter/model/Ref2.java | 7 +-
.../foundation/protobuf/internal/ProtoConst.java | 38 ++-
.../protobuf/internal/schema/SchemaManager.java | 3 +-
14 files changed, 1019 insertions(+), 51 deletions(-)
create mode 100644
common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/internal/converter/BodyParameterAdapter.java
create mode 100644
common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/internal/converter/PropertyAdapter.java
create mode 100644
common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/internal/converter/ProtoMethod.java
copy
demo/demo-edge/model/src/main/java/org/apache/servicecomb/demo/edge/model/DependTypeB.java
=>
common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/internal/converter/ProtoResponse.java
(67%)
copy
swagger/swagger-generator/generator-core/src/test/java/org/apache/servicecomb/swagger/generator/core/schema/InvalidType.java
=>
common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/internal/converter/SerializableParameterAdapter.java
(50%)
create mode 100644
common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/internal/converter/SwaggerToProtoGenerator.java
create mode 100644
common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/internal/converter/SwaggerTypeAdapter.java
create mode 100644
common/common-protobuf/src/test/java/org/apache/servicecomb/codec/protobuf/internal/converter/TestSwaggerToProtoGenerator.java
create mode 100644
common/common-protobuf/src/test/java/org/apache/servicecomb/codec/protobuf/internal/converter/model/ProtoSchema.java
copy
demo/demo-crossapp/crossapp-client/src/main/java/org/apache/servicecomb/demo/crossapp/HelloWorld.java
=>
common/common-protobuf/src/test/java/org/apache/servicecomb/codec/protobuf/internal/converter/model/Ref1.java
(87%)
copy
demo/demo-crossapp/crossapp-client/src/main/java/org/apache/servicecomb/demo/crossapp/HelloWorld.java
=>
common/common-protobuf/src/test/java/org/apache/servicecomb/codec/protobuf/internal/converter/model/Ref2.java
(87%)