You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aurélien Pupier (Jira)" <ji...@apache.org> on 2021/06/21 14:37:00 UTC
[jira] [Comment Edited] (CAMEL-16741) camel-yaml-dsl - Yaml schema
validation error for rest endpoints
[ https://issues.apache.org/jira/browse/CAMEL-16741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366634#comment-17366634 ]
Aurélien Pupier edited comment on CAMEL-16741 at 6/21/21, 2:36 PM:
-------------------------------------------------------------------
I supposed that by "The YAML validator schema", you meant when you are inside VS Code with [VS Code Camel K|https://marketplace.visualstudio.com/items?itemName=redhat.vscode-camelk] installed. Is it right [~ruromero] ?
was (Author: apupier):
I supposed that by "The YAML validator schema", you meant when you are inside VS Code with [VS Code Camel K|https://marketplace.visualstudio.com/items?itemName=camel-tooling.vscode-camelk] installed. Is it right [~ruromero] ?
> 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)