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

Offer a reformat feature #96

Open
3 tasks
lordrip opened this issue Sep 7, 2023 · 2 comments
Open
3 tasks

Offer a reformat feature #96

lordrip opened this issue Sep 7, 2023 · 2 comments

Comments

@lordrip
Copy link
Member

lordrip commented Sep 7, 2023

Context

Currently, there are changes in the Camel YAML Schema, going from kebab-case to camelCase and this might be transformed using automated process directly from kaoto-next

Goal

The goal of this issue is to provide a reformat button to the source code editor that:

  • Transform from kebab-case to camelCase
  • Transform URI query parameters to property objects
  • Use the recommended to: syntax
@igarashitm
Copy link
Contributor

Aligning expression dialect would fall into here as well

- when:
    simple: ${header.foo} == 'foo'
 - when:
     simple:
       expression: '${header.foo} == 'foo'
 - when:
     expression:
       simple: ${header.foo} == 'foo'
 - when:
     expression:
       simple:
         expression: ${header.foo} == 'foo'

@lhein
Copy link
Contributor

lhein commented Nov 2, 2023

That isn't just a pure code formatting as the title might suggest. This is more of an optimize code feature.

@lordrip lordrip added this to the 2.0.0 milestone Jan 30, 2024
@lordrip lordrip removed this from the 2.0.0 milestone Feb 29, 2024
lordrip pushed a commit to lordrip/kaoto that referenced this issue Aug 30, 2024
Fixes: KaotoIO#96

Injecting XSLTProcessor from xslt-ts since jsdom doesn't provide one. For some reason `xsl:copy-of` behaves differently than XSLT Fiddle, it doesn't copy nested values in tests while it does in XSLT Fiddle. We shouldn't expect too much for unit testing DOM Lv3 and XSLT browser API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

3 participants