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:54 UTC

[camel] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/camel.git


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

commit 6659cc72f9ddab83ab635002745e1b6b86c271a7
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";