Re: [I] Unsupported field: enableCORS [camel-karavan]

2024-05-09 Thread via GitHub


mgubaidullin closed issue #1267: Unsupported field: enableCORS
URL: https://github.com/apache/camel-karavan/issues/1267


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Unsupported field: enableCORS [camel-karavan]

2024-05-09 Thread via GitHub


davsclaus commented on issue #1267:
URL: https://github.com/apache/camel-karavan/issues/1267#issuecomment-2102062529

   Thanks its a bug in Camel to be fixed by
   https://issues.apache.org/jira/browse/CAMEL-20750


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Unsupported field: enableCORS [camel-karavan]

2024-05-08 Thread via GitHub


samar-elsayed commented on issue #1267:
URL: https://github.com/apache/camel-karavan/issues/1267#issuecomment-2101683327

   @mgubaidullin  HYG
   
   ```
   - rest:
   id: rest-c531
   path: test/v1
   consumes: application/json
   produces: application/json
   bindingMode: auto
   post:
 - id: post-f13f
   disabled: true
   path: inquiry
   to: direct:Inquiry
   consumes: application/json
   produces: application/json
   bindingMode: auto
   enableCORS: true
   routeId: inquiry
 - id: post-bd88
   path: payment
   to: direct:Payment
   - route:
   id: route-a3bb
   description: "SP Auth "
   nodePrefixId: route-ebf
   from:
 id: from-0376
 uri: timer
 parameters:
   timerName: gen-auth-token
   period: "27"
 steps:
   - step:
   id: step-0e9f
   description: Auth Steps
   steps:
 - process:
 id: process-9c1b
 description: AuthReq
 ref: AuthReq
 - log:
 id: log-0413
 message: ${body}
 - removeHeaders:
 id: removeHeaders-b555
 description: Remove Camel Headers
 pattern: Camel*
 - to:
 id: to-8d87
 description: Auth API
 uri: https
 parameters:
   httpUri: optest.test.net/api/onlinepayment/Authenticate
   bridgeEndpoint: true
   httpMethod: POST
 - process:
 id: process-2f31
 description: AuthRes
 ref: AuthRes
   - to:
   id: to-3292
   description: Cache Auth Token
   uri: caffeine-cache
   parameters:
 action: PUT
 cacheName: Auth_Token
 key: Auth_Token
 maximumSize: 1
 initialCapacity: 1
 evictionType: time_based
 expireAfterAccessTime: "270"
 expireAfterWriteTime: "270"
   - route:
   id: Inquiry
   nodePrefixId: route-94b
   from:
 id: from-18a6
 uri: direct
 parameters:
   name: Inquiry
 steps:
   - step:
   id: step-8b19
   description: test Token Validation
   steps:
 - marshal:
 id: marshal-d49b
 json:
   id: json-64d8
 - setProperty:
 id: setProperty-d35e
 name: InquiryReqBody
 expression:
   simple:
 id: simple-31b3
 expression: ${body}
 resultType: String
 - process:
 id: process-268d
 description: test Token Req
 ref: testTokenReq
 - to:
 id: to-01c1
 description: Keycloak Validation
 uri: http
 parameters:
   httpUri: >-
 
10.90.7.61:30888/realms/master/protocol/openid-connect/token/introspect
   httpMethod: POST
 - log:
 id: log-da0a
 disabled: true
 message: After token validation == ${body}
   - choice:
   id: choice-1e9b
   when:
 - id: when-56bd
   expression:
 jsonpath:
   id: jsonpath-d058
   expression: $[?(@.active == true)]
   steps:
 - step:
 id: Inquiry Steps
 description: Inquiry Steps
 steps:
   - to:
   id: to-50cf
   description: Get Auth Token
   uri: caffeine-cache
   parameters:
 action: GET
 cacheName: Auth_Token
 key: Auth_Token
 maximumSize: 1
 initialCapacity: 1
 evictionType: time_based
 expireAfterAccessTime: "270"
 expireAfterWriteTime: "270"
   - log:
   id: log-da6b
   message: >-
  

Re: [I] Unsupported field: enableCORS [camel-karavan]

2024-05-08 Thread via GitHub


mgubaidullin commented on issue #1267:
URL: https://github.com/apache/camel-karavan/issues/1267#issuecomment-2101608984

   Please share yaml and Camel version you are running


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[I] Unsupported field: enableCORS [camel-karavan]

2024-05-08 Thread via GitHub


samar-elsayed opened a new issue, #1267:
URL: https://github.com/apache/camel-karavan/issues/1267

   ### Describe the bug
   
   I am using the latest karavan VScode plugin version and when I try to enable 
CORS for rest endpoint
   it gives me **Unsupported field: enableCORS**
   
   ### Steps to reproduce the behavior
   
   
![image](https://github.com/apache/camel-karavan/assets/22873802/43e36202-7fcc-4f01-bd10-8149b0553d6e)
   
   ### Variant
   
   Vs Code Extension
   
   ### Container Management (if applicable)
   
   None
   
   ### Operating System (if applicable)
   
   None
   
   ### Version
   
   4.5.0
   
   ### Relevant log output
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org