KaotoIO / kaoto-backend

Backend for the Kaoto project to provide an easy to use integration framework based on Apache Camel.
Apache License 2.0
75 stars 32 forks source link

feat(rest): Add camelCase and kebab-case parsing #851

Closed lordrip closed 1 year ago

lordrip commented 1 year ago

Context

Currently, routeConfiguration and restConfiguration properties are supported.

Changes

The goal is to have both camelCase and kebab-case reading support but camelCase writing support.

rest-configuration and route-configuration gets transformed into restConfiguration and routeConfiguration respectively.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 80.00% and project coverage change: +0.06% :tada:

Comparison is base (fa71d42) 70.68% compared to head (03733a3) 70.74%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #851 +/- ## ============================================ + Coverage 70.68% 70.74% +0.06% - Complexity 199 200 +1 ============================================ Files 69 69 Lines 3360 3364 +4 Branches 565 565 ============================================ + Hits 2375 2380 +5 + Misses 766 765 -1 Partials 219 219 ``` | [Files Changed](https://app.codecov.io/gh/KaotoIO/kaoto-backend/pull/851?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=KaotoIO) | Coverage Δ | | |---|---|---| | [...step/parser/camelroute/CamelRouteDeserializer.java](https://app.codecov.io/gh/KaotoIO/kaoto-backend/pull/851?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=KaotoIO#diff-Y2FtZWwtc3VwcG9ydC9zcmMvbWFpbi9qYXZhL2lvL2thb3RvL2JhY2tlbmQvY2FtZWwvc2VydmljZS9zdGVwL3BhcnNlci9jYW1lbHJvdXRlL0NhbWVsUm91dGVEZXNlcmlhbGl6ZXIuamF2YQ==) | `85.36% <75.00%> (-1.13%)` | :arrow_down: | | [...parser/camelroute/CamelRouteStepParserService.java](https://app.codecov.io/gh/KaotoIO/kaoto-backend/pull/851?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=KaotoIO#diff-Y2FtZWwtc3VwcG9ydC9zcmMvbWFpbi9qYXZhL2lvL2thb3RvL2JhY2tlbmQvY2FtZWwvc2VydmljZS9zdGVwL3BhcnNlci9jYW1lbHJvdXRlL0NhbWVsUm91dGVTdGVwUGFyc2VyU2VydmljZS5qYXZh) | `83.33% <100.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/KaotoIO/kaoto-backend/pull/851/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=KaotoIO)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.