[
https://issues.apache.org/jira/browse/CAMEL-16741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366626#comment-17366626
]
Aurélien Pupier commented on CAMEL-16741:
-----------------------------------------
The problem seems to be on toolign side. it seems that the emebdded schema is
used (which is the [1.5.0
version|https://raw.githubusercontent.com/apache/camel-k-runtime/camel-k-runtime-parent-1.5.0/camel-k-loader-yaml/camel-k-loader-yaml/src/generated/resources/camel-yaml-dsl.json]
A workaround is to updtae the value in the settings:
- File -> Preferences -> Settings
- Extensions -> Apache Camel K
- in Camelk > Yaml:schema, replace value with
https://raw.githubusercontent.com/apache/camel/main/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/camel-yaml-dsl.json
> camel-yaml-dsl - Yaml schema validation error for rest endpoints
> ----------------------------------------------------------------
>
> Key: CAMEL-16741
> URL: https://issues.apache.org/jira/browse/CAMEL-16741
> Project: Camel
> Issue Type: Bug
> Components: camel-yaml-dsl
> Reporter: Ruben Romero Montes
> Priority: Major
>
> The YAML validator schema shows an error for the _verb_ attribute for an
> apparently valid rest route:
> Incorrect type. Expected "string"
> {code:java}
> # camel-k: language=yaml
> - rest:
> binding-mode: json
> verb:
> - method: put
> uri: "/songs/{songId}"
> consumes: application/json
> produces: application/json
> param:
> - name: songId
> type: path
> dataType: string
> required: true
> - name: body
> type: bod
> required: true
> steps:
> - to:
> uri: "log:foo"{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)