This is an automated email from the ASF dual-hosted git repository.
grv pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-plugins.gitThe following commit(s) were added to refs/heads/trunk by this push:
new 964a5d0 Fixed: Service In schema reference for GET services(OFBIZ-11328)
964a5d0 is described below
commit 964a5d075b9d0327c53de920ee4b6f966492592c
Author: Girish Vasmatkar <
[hidden email]>
AuthorDate: Mon Sep 7 23:45:08 2020 +0530
Fixed: Service In schema reference for GET services(OFBIZ-11328)
---
.../main/java/org/apache/ofbiz/ws/rs/openapi/OFBizOpenApiReader.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/openapi/OFBizOpenApiReader.java b/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/openapi/OFBizOpenApiReader.java
index 47c3fed..afb9b15 100644
--- a/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/openapi/OFBizOpenApiReader.java
+++ b/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/openapi/OFBizOpenApiReader.java
@@ -124,7 +124,7 @@ public final class OFBizOpenApiReader extends Reader implements OpenApiReader {
final QueryParameter serviceInParam = (QueryParameter) new QueryParameter().required(true)
.description("Service In Parameters in JSON").name("inParams");
Schema<?> refSchema = new Schema<>();
- refSchema.$ref(service.getName() + "Request");
+ refSchema.$ref("#/components/schemas/" + "api.request." + service.getName());
serviceInParam.schema(refSchema);
operation.addParametersItem(serviceInParam);