You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "brunomendola (via GitHub)" <gi...@apache.org> on 2023/06/19 08:30:36 UTC

[GitHub] [camel-karavan] brunomendola opened a new issue, #799: Karavan producing invalid YAML DSL when using un/marshal component

brunomendola opened a new issue, #799:
URL: https://github.com/apache/camel-karavan/issues/799

   VS Code complains that the YAML code generated by Karavan is not valid against the [json schema](https://raw.githubusercontent.com/apache/camel/main/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json).
   
   It's not just VS Code, the error is returned also when validating the YAML file against the schema programmatically.
   
   I've seen cases where the validation error was just the case-sensitive matching of an enum.
   
   i.e. when using the Marshal or Unmarshal components with the Jackson library, Karavan uses "jackson", but the schema would validate "Jackson" with the uppercase first letter.
   
   ![image](https://github.com/apache/camel-karavan/assets/1853562/b45003cc-ebd8-4da4-a546-959e34a914d6)


-- 
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-unsubscribe@camel.apache.org.apache.org

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


[GitHub] [camel-karavan] mgubaidullin commented on issue #799: Karavan producing invalid YAML DSL when using un/marshal component

Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin commented on issue #799:
URL: https://github.com/apache/camel-karavan/issues/799#issuecomment-1616013040

   Fixed in https://github.com/apache/camel-karavan/issues/810


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-karavan] brunomendola commented on issue #799: Karavan producing invalid YAML DSL when using un/marshal component

Posted by "brunomendola (via GitHub)" <gi...@apache.org>.
brunomendola commented on issue #799:
URL: https://github.com/apache/camel-karavan/issues/799#issuecomment-1597376115

   When validating the YAML programmatically, I switched to the approach seen in [this test file](https://github.com/apache/camel/blob/main/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/test/groovy/org/apache/camel/dsl/yaml/deserializers/SplitTest.groovy), by using the deserializers contained in the camel-yaml-dsl module, and it works better than validating against the json schema, since the enum matching is done in case-insensitive mode.
   
   But the VS Code issue remains...


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-karavan] mgubaidullin commented on issue #799: Karavan producing invalid YAML DSL when using un/marshal component

Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin commented on issue #799:
URL: https://github.com/apache/camel-karavan/issues/799#issuecomment-1597382345

   karavan generates YAML using camelYamlDsl.sjon and camel catalog.
   So as soon as this values be synchronized in camel itself karavan will start to generate correct values.
   Issue in camel is open https://issues.apache.org/jira/browse/CAMEL-19471


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-karavan] mgubaidullin closed issue #799: Karavan producing invalid YAML DSL when using un/marshal component

Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin closed issue #799: Karavan producing invalid YAML DSL when using un/marshal component
URL: https://github.com/apache/camel-karavan/issues/799


-- 
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-unsubscribe@camel.apache.org

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


[GitHub] [camel-karavan] mgubaidullin commented on issue #799: Karavan producing invalid YAML DSL when using un/marshal component

Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin commented on issue #799:
URL: https://github.com/apache/camel-karavan/issues/799#issuecomment-1597075470

   https://issues.apache.org/jira/browse/CAMEL-19471


-- 
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-unsubscribe@camel.apache.org

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