[jira] [Created] (CAMEL-21072) camel-test-infra-ollama: should use the Ollama container from testcontainers

2024-08-12 Thread Otavio Rodolfo Piske (Jira)
Otavio Rodolfo Piske created CAMEL-21072:


 Summary: camel-test-infra-ollama: should use the Ollama container 
from testcontainers
 Key: CAMEL-21072
 URL: https://issues.apache.org/jira/browse/CAMEL-21072
 Project: Camel
  Issue Type: Improvement
  Components: camel-test-infra-ollama, camel-test-infra
Affects Versions: 4.7.0
Reporter: Otavio Rodolfo Piske
Assignee: Otavio Rodolfo Piske
 Fix For: 4.8.0


Testcontainers now provide a container for Ollama. We should adjust the code to 
use that one instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-20915) test-infra: automate checking for container upgrades

2024-08-12 Thread Jira


[ 
https://issues.apache.org/jira/browse/CAMEL-20915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872837#comment-17872837
 ] 

Aurélien Pupier commented on CAMEL-20915:
-

Note that these properties are used by testcontainers 
https://testcontainers.com/ which is not based on devcontainers specification.
A better way would be to have Dependabot to support testcontainers, vote for 
https://github.com/dependabot/dependabot-core/issues/6893


> test-infra: automate checking for container upgrades
> 
>
> Key: CAMEL-20915
> URL: https://issues.apache.org/jira/browse/CAMEL-20915
> Project: Camel
>  Issue Type: Task
>  Components: test-infra
>Affects Versions: 4.7.0
>Reporter: Otavio Rodolfo Piske
>Priority: Major
>  Labels: help-wanted
> Fix For: 4.x
>
>
> We use a lot of containers as part of our tests. With time, they become 
> outdated and we have to manually check for upgrades. 
> This tasks is to create a script to automate checking for new versions of the 
> containers.
> You can find all the containers used in Camel by running the following 
> command:
> {code:java}
> find . -iname 'container.properties' -ipath '*src*' -exec sh -c "cat {} | 
> grep container | cut -d = -f 2 "  \;
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (CAMEL-21073) camel-salesforce compilation is failing on CI when using /component-test

2024-08-12 Thread Jira
Aurélien Pupier created CAMEL-21073:
---

 Summary: camel-salesforce compilation is failing on CI when using 
/component-test
 Key: CAMEL-21073
 URL: https://issues.apache.org/jira/browse/CAMEL-21073
 Project: Camel
  Issue Type: Bug
  Components: camel-salesforce
Affects Versions: 4.7.0
Reporter: Aurélien Pupier


there is several times the error:

```
package com.google.protobuf does not exist
```

building camel-salesforce locally with `mvn clean install` is working fine



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21073) camel-salesforce compilation is failing on CI when using /component-test

2024-08-12 Thread Jira


 [ 
https://issues.apache.org/jira/browse/CAMEL-21073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aurélien Pupier updated CAMEL-21073:

Priority: Minor  (was: Major)

> camel-salesforce compilation is failing on CI when using /component-test
> 
>
> Key: CAMEL-21073
> URL: https://issues.apache.org/jira/browse/CAMEL-21073
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 4.7.0
>Reporter: Aurélien Pupier
>Priority: Minor
>
> there is several times the error:
> ```
> package com.google.protobuf does not exist
> ```
> building camel-salesforce locally with `mvn clean install` is working fine



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21073) camel-salesforce compilation is failing on CI when using /component-test

2024-08-12 Thread Jira


[ 
https://issues.apache.org/jira/browse/CAMEL-21073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872911#comment-17872911
 ] 

Aurélien Pupier commented on CAMEL-21073:
-

this is the last commit related to protobuf on the camel salesforce comonent I 
found: 
https://github.com/apache/camel/commit/da694a7a0fdc29a6840e072ffd2730ffc78cb55f

> camel-salesforce compilation is failing on CI when using /component-test
> 
>
> Key: CAMEL-21073
> URL: https://issues.apache.org/jira/browse/CAMEL-21073
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 4.7.0
>Reporter: Aurélien Pupier
>Priority: Major
>
> there is several times the error:
> ```
> package com.google.protobuf does not exist
> ```
> building camel-salesforce locally with `mvn clean install` is working fine



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21073) camel-salesforce compilation is failing on CI when using /component-test

2024-08-12 Thread Jira


 [ 
https://issues.apache.org/jira/browse/CAMEL-21073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aurélien Pupier updated CAMEL-21073:

Attachment: tests-java-17.log(3).zip

> camel-salesforce compilation is failing on CI when using /component-test
> 
>
> Key: CAMEL-21073
> URL: https://issues.apache.org/jira/browse/CAMEL-21073
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 4.7.0
>Reporter: Aurélien Pupier
>Priority: Minor
> Attachments: tests-java-17.log(3).zip
>
>
> there is several times the error:
> ```
> package com.google.protobuf does not exist
> ```
> building camel-salesforce locally with `mvn clean install` is working fine



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (CAMEL-21074) camel-spring-boot - Upgrade to Spring Boot 3.3.3

2024-08-12 Thread Claus Ibsen (Jira)
Claus Ibsen created CAMEL-21074:
---

 Summary: camel-spring-boot - Upgrade to Spring Boot 3.3.3
 Key: CAMEL-21074
 URL: https://issues.apache.org/jira/browse/CAMEL-21074
 Project: Camel
  Issue Type: Dependency upgrade
  Components: camel-spring-boot
Reporter: Claus Ibsen
 Fix For: 4.8.0


SB is released later this month.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (CAMEL-19767) camel-core: test should not catch AssertionError

2024-08-12 Thread Gaelle Fournier (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-19767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gaelle Fournier reassigned CAMEL-19767:
---

Assignee: Gaelle Fournier

> camel-core: test should not catch AssertionError
> 
>
> Key: CAMEL-19767
> URL: https://issues.apache.org/jira/browse/CAMEL-19767
> Project: Camel
>  Issue Type: Task
>  Components: camel-core
>Reporter: Nikita_Konovalov
>Assignee: Gaelle Fournier
>Priority: Major
>  Labels: help-wanted
>
> ??Regarding the first set of changes ...??
> ??I think catching an {{AssertionError}} is not an adequate test practice. 
> That deviates from the actual purpose of the AssertionError which is to 
> indicate that the test has failed.??
> ??For now, let's keep the original as is. Let's create a ticket on Apache 
> Jira to note that this is a bad practice that must be fixed.??
>  
> Quoting [~orpiske] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (CAMEL-21075) camel-langchain4j-chat: unreliability due to failing to clear cached consumers

2024-08-12 Thread Otavio Rodolfo Piske (Jira)
Otavio Rodolfo Piske created CAMEL-21075:


 Summary:  camel-langchain4j-chat: unreliability due to failing to 
clear cached consumers
 Key: CAMEL-21075
 URL: https://issues.apache.org/jira/browse/CAMEL-21075
 Project: Camel
  Issue Type: Improvement
  Components: camel-langchain4j-chat, camel-ai
Affects Versions: 4.7.0
Reporter: Otavio Rodolfo Piske
Assignee: Otavio Rodolfo Piske
 Fix For: 4.8.0


The LangChain4J Chat component fails to cleanup the cached consumers. In some 
circumstances (such as when restarting the route), it may cause the code to try 
to use a reference to an outdated consumer. 

This is particularly problematic for function calling / tools, as it may cause 
and wrong tool to be called. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-19767) camel-core: test should not catch AssertionError

2024-08-12 Thread Gaelle Fournier (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-19767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872969#comment-17872969
 ] 

Gaelle Fournier commented on CAMEL-19767:
-

[Original 
comment|https://github.com/apache/camel/pull/11145#issuecomment-1685871778] for 
more context.

> camel-core: test should not catch AssertionError
> 
>
> Key: CAMEL-19767
> URL: https://issues.apache.org/jira/browse/CAMEL-19767
> Project: Camel
>  Issue Type: Task
>  Components: camel-core
>Reporter: Nikita_Konovalov
>Assignee: Gaelle Fournier
>Priority: Major
>  Labels: help-wanted
>
> ??Regarding the first set of changes ...??
> ??I think catching an {{AssertionError}} is not an adequate test practice. 
> That deviates from the actual purpose of the AssertionError which is to 
> indicate that the test has failed.??
> ??For now, let's keep the original as is. Let's create a ticket on Apache 
> Jira to note that this is a bad practice that must be fixed.??
>  
> Quoting [~orpiske] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (CAMEL-21076) camel-openapi-java: Incorrect schema is generated for array type request

2024-08-12 Thread Iliya Grushevskiy (Jira)
Iliya Grushevskiy created CAMEL-21076:
-

 Summary: camel-openapi-java: Incorrect schema is generated for 
array type request 
 Key: CAMEL-21076
 URL: https://issues.apache.org/jira/browse/CAMEL-21076
 Project: Camel
  Issue Type: Bug
  Components: camel-openapi-java
Affects Versions: 3.x, 4.x
Reporter: Iliya Grushevskiy


When specifying an array of objects as a request type (in PUT/POST methods), 
the generated OpenAPI schema does not match the expected result.

For example:
{code:java}
.post()
  .type(User[].class)
  .to("bean:"){code}
Will generate:
{code:java}
"requestBody" : {
  "description" : "",
  "content" : {
"application/json" : {
  "schema" : {
"type" : "string"
  }
}
  },
  "required" : true
}, {code}
While expected schema should be:
{code:java}
"requestBody" : {
  "description" : "",
  "content" : {
"application/json" : {
  "schema" : {
"type" : "array",
"items" : {
  "$ref" : "#/components/schemas/User"
}
  }
}
  },
  "required" : true
} {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21076) camel-openapi-java: Incorrect schema is generated for array type request

2024-08-12 Thread Iliya Grushevskiy (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873061#comment-17873061
 ] 

Iliya Grushevskiy commented on CAMEL-21076:
---

Branch with fix [https://github.com/iliya-gr/camel/tree/CAMEL-21076] 

Can't create pull request, because recovering my 2FA access to Github

> camel-openapi-java: Incorrect schema is generated for array type request 
> -
>
> Key: CAMEL-21076
> URL: https://issues.apache.org/jira/browse/CAMEL-21076
> Project: Camel
>  Issue Type: Bug
>  Components: camel-openapi-java
>Affects Versions: 3.x, 4.x
>Reporter: Iliya Grushevskiy
>Priority: Major
>
> When specifying an array of objects as a request type (in PUT/POST methods), 
> the generated OpenAPI schema does not match the expected result.
> For example:
> {code:java}
> .post()
>   .type(User[].class)
>   .to("bean:"){code}
> Will generate:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "string"
>   }
> }
>   },
>   "required" : true
> }, {code}
> While expected schema should be:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "array",
> "items" : {
>   "$ref" : "#/components/schemas/User"
> }
>   }
> }
>   },
>   "required" : true
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21057) REST OpenApi fails to resolve host from the URL

2024-08-12 Thread Zheng Feng (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-21057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zheng Feng updated CAMEL-21057:
---
Priority: Major  (was: Minor)

> REST OpenApi fails to resolve host from the URL
> ---
>
> Key: CAMEL-21057
> URL: https://issues.apache.org/jira/browse/CAMEL-21057
> Project: Camel
>  Issue Type: Bug
>  Components: camel-rest-openapi
>Affects Versions: 3.18.8, 4.7.0
>Reporter: Lukas Lowinger
>Priority: Major
> Attachments: rest-openapi-camel.zip
>
>
> Given simple route
> {code}
> private final String openApiJsonUrl = 
> "http://localhost:8080/api/v3/openapi.json";;
> String a = "{\n" + "  \"id\": 13,\n" + "  \"name\": \"kooo\",\n" + "  
> \"category\": {\n" + "\"id\": 1,\n" + "\"name\": \"Dogs\"\n" + "  
> }\n" + "}";
> @Override
> public void configure() throws Exception {
> 
> from("timer:test?repeatCount=1").setBody(simple(a)).setHeader(Exchange.CONTENT_TYPE,
>  simple("application/json")).to("rest-openapi:#addPet?specificationUri=RAW(" 
> + openApiJsonUrl + ")").to("direct:readPet");
> from("direct:readPet").setHeader("petId", 
> simple("13")).to("rest-openapi:#getPetById?specificationUri=RAW(" + 
> openApiJsonUrl + ")");
> }
> {code}
> I get 
> {code}
> Caused by: java.net.MalformedURLException: no protocol: /api/v3
> at java.net.URL. (URL.java:674)
> at java.net.URL. (URL.java:569)
> at java.net.URL. (URL.java:516)
> at 
> org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.determineHost 
> (RestOpenApiEndpoint.java:590)
> at 
> org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.determineEndpointParameters
>  (RestOpenApiEndpoint.java:459)
> {code}
> Reproducer:
> # Unzip  [^rest-openapi-camel.zip] 
> # Run `docker run -p 8080:8080 swaggerapi/petstore3`
> # mvn camel:run



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Assigned] (CAMEL-21057) REST OpenApi fails to resolve host from the URL

2024-08-12 Thread Zheng Feng (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-21057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zheng Feng reassigned CAMEL-21057:
--

Assignee: Zheng Feng

> REST OpenApi fails to resolve host from the URL
> ---
>
> Key: CAMEL-21057
> URL: https://issues.apache.org/jira/browse/CAMEL-21057
> Project: Camel
>  Issue Type: Bug
>  Components: camel-rest-openapi
>Affects Versions: 3.18.8, 4.7.0
>Reporter: Lukas Lowinger
>Assignee: Zheng Feng
>Priority: Major
> Attachments: rest-openapi-camel.zip
>
>
> Given simple route
> {code}
> private final String openApiJsonUrl = 
> "http://localhost:8080/api/v3/openapi.json";;
> String a = "{\n" + "  \"id\": 13,\n" + "  \"name\": \"kooo\",\n" + "  
> \"category\": {\n" + "\"id\": 1,\n" + "\"name\": \"Dogs\"\n" + "  
> }\n" + "}";
> @Override
> public void configure() throws Exception {
> 
> from("timer:test?repeatCount=1").setBody(simple(a)).setHeader(Exchange.CONTENT_TYPE,
>  simple("application/json")).to("rest-openapi:#addPet?specificationUri=RAW(" 
> + openApiJsonUrl + ")").to("direct:readPet");
> from("direct:readPet").setHeader("petId", 
> simple("13")).to("rest-openapi:#getPetById?specificationUri=RAW(" + 
> openApiJsonUrl + ")");
> }
> {code}
> I get 
> {code}
> Caused by: java.net.MalformedURLException: no protocol: /api/v3
> at java.net.URL. (URL.java:674)
> at java.net.URL. (URL.java:569)
> at java.net.URL. (URL.java:516)
> at 
> org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.determineHost 
> (RestOpenApiEndpoint.java:590)
> at 
> org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.determineEndpointParameters
>  (RestOpenApiEndpoint.java:459)
> {code}
> Reproducer:
> # Unzip  [^rest-openapi-camel.zip] 
> # Run `docker run -p 8080:8080 swaggerapi/petstore3`
> # mvn camel:run



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21057) REST OpenApi fails to resolve host from the URL

2024-08-12 Thread Zheng Feng (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-21057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873098#comment-17873098
 ] 

Zheng Feng commented on CAMEL-21057:


Yeah, it does not handle the relative url correctly. Refer to the spec 
https://swagger.io/docs/specification/api-host-and-base-path/
{noformat}
The URLs in the servers array can be relative, such as /v2. In this case, the 
URL is resolved against the server that hosts the given OpenAPI 
definition.{noformat}

> REST OpenApi fails to resolve host from the URL
> ---
>
> Key: CAMEL-21057
> URL: https://issues.apache.org/jira/browse/CAMEL-21057
> Project: Camel
>  Issue Type: Bug
>  Components: camel-rest-openapi
>Affects Versions: 3.18.8, 4.7.0
>Reporter: Lukas Lowinger
>Assignee: Zheng Feng
>Priority: Major
> Attachments: rest-openapi-camel.zip
>
>
> Given simple route
> {code}
> private final String openApiJsonUrl = 
> "http://localhost:8080/api/v3/openapi.json";;
> String a = "{\n" + "  \"id\": 13,\n" + "  \"name\": \"kooo\",\n" + "  
> \"category\": {\n" + "\"id\": 1,\n" + "\"name\": \"Dogs\"\n" + "  
> }\n" + "}";
> @Override
> public void configure() throws Exception {
> 
> from("timer:test?repeatCount=1").setBody(simple(a)).setHeader(Exchange.CONTENT_TYPE,
>  simple("application/json")).to("rest-openapi:#addPet?specificationUri=RAW(" 
> + openApiJsonUrl + ")").to("direct:readPet");
> from("direct:readPet").setHeader("petId", 
> simple("13")).to("rest-openapi:#getPetById?specificationUri=RAW(" + 
> openApiJsonUrl + ")");
> }
> {code}
> I get 
> {code}
> Caused by: java.net.MalformedURLException: no protocol: /api/v3
> at java.net.URL. (URL.java:674)
> at java.net.URL. (URL.java:569)
> at java.net.URL. (URL.java:516)
> at 
> org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.determineHost 
> (RestOpenApiEndpoint.java:590)
> at 
> org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.determineEndpointParameters
>  (RestOpenApiEndpoint.java:459)
> {code}
> Reproducer:
> # Unzip  [^rest-openapi-camel.zip] 
> # Run `docker run -p 8080:8080 swaggerapi/petstore3`
> # mvn camel:run



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CAMEL-21075) camel-langchain4j-chat: unreliability due to failing to clear cached consumers

2024-08-12 Thread Otavio Rodolfo Piske (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-21075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Otavio Rodolfo Piske resolved CAMEL-21075.
--
Resolution: Fixed

Resolved with the linked PR.

>  camel-langchain4j-chat: unreliability due to failing to clear cached 
> consumers
> ---
>
> Key: CAMEL-21075
> URL: https://issues.apache.org/jira/browse/CAMEL-21075
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-ai, camel-langchain4j-chat
>Affects Versions: 4.7.0
>Reporter: Otavio Rodolfo Piske
>Assignee: Otavio Rodolfo Piske
>Priority: Major
> Fix For: 4.8.0
>
>
> The LangChain4J Chat component fails to cleanup the cached consumers. In some 
> circumstances (such as when restarting the route), it may cause the code to 
> try to use a reference to an outdated consumer. 
> This is particularly problematic for function calling / tools, as it may 
> cause and wrong tool to be called. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21075) camel-langchain4j-chat: unreliability due to failing to clear cached consumers

2024-08-12 Thread Otavio Rodolfo Piske (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-21075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Otavio Rodolfo Piske updated CAMEL-21075:
-
Issue Type: Bug  (was: Improvement)

>  camel-langchain4j-chat: unreliability due to failing to clear cached 
> consumers
> ---
>
> Key: CAMEL-21075
> URL: https://issues.apache.org/jira/browse/CAMEL-21075
> Project: Camel
>  Issue Type: Bug
>  Components: camel-ai, camel-langchain4j-chat
>Affects Versions: 4.7.0
>Reporter: Otavio Rodolfo Piske
>Assignee: Otavio Rodolfo Piske
>Priority: Major
> Fix For: 4.8.0
>
>
> The LangChain4J Chat component fails to cleanup the cached consumers. In some 
> circumstances (such as when restarting the route), it may cause the code to 
> try to use a reference to an outdated consumer. 
> This is particularly problematic for function calling / tools, as it may 
> cause and wrong tool to be called. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21076) camel-openapi-java: Incorrect schema is generated for array type request

2024-08-12 Thread Claus Ibsen (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-21076:

Fix Version/s: 4.8.0

> camel-openapi-java: Incorrect schema is generated for array type request 
> -
>
> Key: CAMEL-21076
> URL: https://issues.apache.org/jira/browse/CAMEL-21076
> Project: Camel
>  Issue Type: Bug
>  Components: camel-openapi-java
>Affects Versions: 3.x, 4.x
>Reporter: Iliya Grushevskiy
>Priority: Major
> Fix For: 4.8.0
>
>
> When specifying an array of objects as a request type (in PUT/POST methods), 
> the generated OpenAPI schema does not match the expected result.
> For example:
> {code:java}
> .post()
>   .type(User[].class)
>   .to("bean:"){code}
> Will generate:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "string"
>   }
> }
>   },
>   "required" : true
> }, {code}
> While expected schema should be:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "array",
> "items" : {
>   "$ref" : "#/components/schemas/User"
> }
>   }
> }
>   },
>   "required" : true
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21076) camel-openapi-java: Incorrect schema is generated for array type request

2024-08-12 Thread Claus Ibsen (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873118#comment-17873118
 ] 

Claus Ibsen commented on CAMEL-21076:
-

Can you attach your modified source code files to this JIRA thanks

> camel-openapi-java: Incorrect schema is generated for array type request 
> -
>
> Key: CAMEL-21076
> URL: https://issues.apache.org/jira/browse/CAMEL-21076
> Project: Camel
>  Issue Type: Bug
>  Components: camel-openapi-java
>Affects Versions: 3.x, 4.x
>Reporter: Iliya Grushevskiy
>Priority: Major
>
> When specifying an array of objects as a request type (in PUT/POST methods), 
> the generated OpenAPI schema does not match the expected result.
> For example:
> {code:java}
> .post()
>   .type(User[].class)
>   .to("bean:"){code}
> Will generate:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "string"
>   }
> }
>   },
>   "required" : true
> }, {code}
> While expected schema should be:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "array",
> "items" : {
>   "$ref" : "#/components/schemas/User"
> }
>   }
> }
>   },
>   "required" : true
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21000) camel-jbang: Kubernetes plugin: Add Ingress trait

2024-08-12 Thread Claus Ibsen (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-21000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-21000:

Priority: Minor  (was: Trivial)

> camel-jbang: Kubernetes plugin: Add Ingress trait
> -
>
> Key: CAMEL-21000
> URL: https://issues.apache.org/jira/browse/CAMEL-21000
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-jbang
>Reporter: Gaëlle Fournier
>Assignee: Gaelle Fournier
>Priority: Minor
> Fix For: 4.x
>
>
> We should enhance Camel JBang Kubernetes plugin with an Ingress trait that is 
> capable of configuring the Kubenetes Ingress resource that should be part of 
> the Kubernetes manifest.
> h4.  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CAMEL-21000) camel-jbang: Kubernetes plugin: Add Ingress trait

2024-08-12 Thread Claus Ibsen (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-21000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-21000.
-
Resolution: Fixed

> camel-jbang: Kubernetes plugin: Add Ingress trait
> -
>
> Key: CAMEL-21000
> URL: https://issues.apache.org/jira/browse/CAMEL-21000
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-jbang
>Reporter: Gaëlle Fournier
>Assignee: Gaelle Fournier
>Priority: Minor
> Fix For: 4.8.0
>
>
> We should enhance Camel JBang Kubernetes plugin with an Ingress trait that is 
> capable of configuring the Kubenetes Ingress resource that should be part of 
> the Kubernetes manifest.
> h4.  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21000) camel-jbang: Kubernetes plugin: Add Ingress trait

2024-08-12 Thread Claus Ibsen (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-21000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-21000:

Fix Version/s: 4.8.0
   (was: 4.x)

> camel-jbang: Kubernetes plugin: Add Ingress trait
> -
>
> Key: CAMEL-21000
> URL: https://issues.apache.org/jira/browse/CAMEL-21000
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-jbang
>Reporter: Gaëlle Fournier
>Assignee: Gaelle Fournier
>Priority: Minor
> Fix For: 4.8.0
>
>
> We should enhance Camel JBang Kubernetes plugin with an Ingress trait that is 
> capable of configuring the Kubenetes Ingress resource that should be part of 
> the Kubernetes manifest.
> h4.  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CAMEL-21076) camel-openapi-java: Incorrect schema is generated for array type request

2024-08-12 Thread Iliya Grushevskiy (Jira)


[ 
https://issues.apache.org/jira/browse/CAMEL-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873120#comment-17873120
 ] 

Iliya Grushevskiy commented on CAMEL-21076:
---

The commit is already in the branch 
[https://github.com/iliya-gr/camel/tree/CAMEL-21076]  I just can't login and 
make pull request.

Here is the patch 
[^CAMEL-21076_Fix_REST_route_definition_and_OpenAPI_schema_generation_for_array_type_request.patch]

> camel-openapi-java: Incorrect schema is generated for array type request 
> -
>
> Key: CAMEL-21076
> URL: https://issues.apache.org/jira/browse/CAMEL-21076
> Project: Camel
>  Issue Type: Bug
>  Components: camel-openapi-java
>Affects Versions: 3.x, 4.x
>Reporter: Iliya Grushevskiy
>Priority: Major
> Fix For: 4.8.0
>
> Attachments: 
> CAMEL-21076_Fix_REST_route_definition_and_OpenAPI_schema_generation_for_array_type_request.patch
>
>
> When specifying an array of objects as a request type (in PUT/POST methods), 
> the generated OpenAPI schema does not match the expected result.
> For example:
> {code:java}
> .post()
>   .type(User[].class)
>   .to("bean:"){code}
> Will generate:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "string"
>   }
> }
>   },
>   "required" : true
> }, {code}
> While expected schema should be:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "array",
> "items" : {
>   "$ref" : "#/components/schemas/User"
> }
>   }
> }
>   },
>   "required" : true
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CAMEL-21076) camel-openapi-java: Incorrect schema is generated for array type request

2024-08-12 Thread Iliya Grushevskiy (Jira)


 [ 
https://issues.apache.org/jira/browse/CAMEL-21076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Iliya Grushevskiy updated CAMEL-21076:
--
Attachment: 
CAMEL-21076_Fix_REST_route_definition_and_OpenAPI_schema_generation_for_array_type_request.patch

> camel-openapi-java: Incorrect schema is generated for array type request 
> -
>
> Key: CAMEL-21076
> URL: https://issues.apache.org/jira/browse/CAMEL-21076
> Project: Camel
>  Issue Type: Bug
>  Components: camel-openapi-java
>Affects Versions: 3.x, 4.x
>Reporter: Iliya Grushevskiy
>Priority: Major
> Fix For: 4.8.0
>
> Attachments: 
> CAMEL-21076_Fix_REST_route_definition_and_OpenAPI_schema_generation_for_array_type_request.patch
>
>
> When specifying an array of objects as a request type (in PUT/POST methods), 
> the generated OpenAPI schema does not match the expected result.
> For example:
> {code:java}
> .post()
>   .type(User[].class)
>   .to("bean:"){code}
> Will generate:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "string"
>   }
> }
>   },
>   "required" : true
> }, {code}
> While expected schema should be:
> {code:java}
> "requestBody" : {
>   "description" : "",
>   "content" : {
> "application/json" : {
>   "schema" : {
> "type" : "array",
> "items" : {
>   "$ref" : "#/components/schemas/User"
> }
>   }
> }
>   },
>   "required" : true
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)