You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/06 14:19:36 UTC

[camel] branch camel-3.7.x updated: CAMEL-16309 - The Rest Openapi schema generator has a typo; "sting" instead of "string"

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

acosentino pushed a commit to branch camel-3.7.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.7.x by this push:
     new 5aa4904  CAMEL-16309 - The Rest Openapi schema generator has a typo; "sting" instead of "string"
5aa4904 is described below

commit 5aa490440589cc37a64522f1ee2001dd1821e8c3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sat Mar 6 15:10:30 2021 +0100

    CAMEL-16309 - The Rest Openapi schema generator has a typo; "sting" instead of "string"
---
 .../src/main/java/org/apache/camel/openapi/RestOpenApiReader.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java b/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java
index 38d5a0d..90241cb 100644
--- a/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java
+++ b/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java
@@ -1240,7 +1240,7 @@ public class RestOpenApiReader {
                 array = false;
             } else if ("string".equalsIgnoreCase(typeName) || "java.lang.String".equals(typeName)) {
                 prop.format = "string";
-                prop.type = "sting";
+                prop.type = "string";
             } else if ("int".equals(typeName) || "java.lang.Integer".equals(typeName)) {
                 prop.format = "integer";
                 prop.type = "number";