Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest contents in YAML source is deleted #1959

Open
igarashitm opened this issue Jan 28, 2025 · 1 comment
Open

Rest contents in YAML source is deleted #1959

igarashitm opened this issue Jan 28, 2025 · 1 comment
Labels
bug Something isn't working source code editor Source Code Editor-related issues

Comments

@igarashitm
Copy link
Contributor

Describe the Bug

While we need to wait for #756 to fully support Rest DSL, it would be better to keep what user inputs in the source code pane. Canvas visualization could be left aside.

Steps to Reproduce the Bug or Issue

  1. Paste this Rest DSL YAML to the kaoto source code pane - https://github.com/apache/camel/blob/main/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/resources/routes/rest-dsl.yaml
  2. Create Rest DSL from Kaoto New menu
  3. See the source code

Screenshots or Videos

2025-01-28.11-12-11.mp4

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 0.30.0]
@igarashitm igarashitm added bug Something isn't working source code editor Source Code Editor-related issues labels Jan 28, 2025
@lordrip
Copy link
Member

lordrip commented Jan 29, 2025

@igarashitm , the Rest definition is being lost due to the \ in the description field:

        description: "Muliple tags can be provided with comma separated strings. Use\
        \ tag1, tag2, tag3 for testing."

Image

The more accurate wording to describe this issue would that the YAML parser doesn't understand that YAML, therefore Kaoto cannot read it.

After removing the \, you can see the Rest element.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working source code editor Source Code Editor-related issues
Projects
Status: New
Development

No branches or pull requests

2 participants