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:17:04 UTC

[camel] branch CAMEL-16309 created (now 1b5b413)

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

acosentino pushed a change to branch CAMEL-16309
in repository https://gitbox.apache.org/repos/asf/camel.git.


      at 1b5b413  CAMEL-16309 - The Rest Openapi schema generator has a typo; "sting" instead of "string"

This branch includes the following new commits:

     new 1b5b413  CAMEL-16309 - The Rest Openapi schema generator has a typo; "sting" instead of "string"

The 1 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.



[camel] 01/01: CAMEL-16309 - The Rest Openapi schema generator has a typo; "sting" instead of "string"

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 1b5b4130a5cbe0dd34ca54bb2eb4d2330f990ace
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";