Skip to content

CAMEL-2261: camel-yaml-dsl - yaml schema json - default values should…#19753

Merged
davsclaus merged 1 commit intomainfrom
bool
Oct 29, 2025
Merged

CAMEL-2261: camel-yaml-dsl - yaml schema json - default values should…#19753
davsclaus merged 1 commit intomainfrom
bool

Conversation

@davsclaus
Copy link
Contributor

… output in the correct type (boolean/number)

Description

Target

  • I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

  • I checked that each commit in the pull request has a meaningful subject line and body.
  • I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

… output in the correct type (boolean/number)
@github-actions
Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟

🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run

  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot.

  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.

  • Build and test logs are available in the Summary page. Only Apache Camel committers have access to the summary.

  • ⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@davsclaus
Copy link
Contributor Author

@lordrip here is a PR where the defaultValue is according to the type

@davsclaus davsclaus merged commit a2d03b6 into main Oct 29, 2025
5 checks passed
@davsclaus davsclaus deleted the bool branch October 29, 2025 12:41
lordrip added a commit to lordrip/camel-catalog that referenced this pull request Oct 30, 2025
In Camel 4.15, the `default` values are written in `string`, regardless of its type. For instance, this is how the `scriptPropertyPlaceholders` property is defined, notice the `default: "true"` portion.

```
          "scriptPropertyPlaceholders" : {
            "type" : "boolean",
            "title" : "Script Property Placeholders",
            "description" : "Whether the script should support using Camel property placeholder syntax {{ }}.",
            "default" : "true"
          },
```

This commit fixes this issue at the Entity and Pattern level by
adjusting the default value to its right type.

A fix for this was provided in Camel upstream here: apache/camel#19753
lordrip added a commit to lordrip/camel-catalog that referenced this pull request Oct 30, 2025
In Camel 4.15, the `default` values are written in `string`, regardless of its type. For instance, this is how the `scriptPropertyPlaceholders` property is defined, notice the `default: "true"` portion.

```
          "scriptPropertyPlaceholders" : {
            "type" : "boolean",
            "title" : "Script Property Placeholders",
            "description" : "Whether the script should support using Camel property placeholder syntax {{ }}.",
            "default" : "true"
          },
```

This commit fixes this issue at the Entity and Pattern level by
adjusting the default value to its right type.

A fix for this was provided in Camel upstream here: apache/camel#19753
lordrip added a commit to KaotoIO/camel-catalog that referenced this pull request Oct 30, 2025
In Camel 4.15, the `default` values are written in `string`, regardless of its type. For instance, this is how the `scriptPropertyPlaceholders` property is defined, notice the `default: "true"` portion.

```
          "scriptPropertyPlaceholders" : {
            "type" : "boolean",
            "title" : "Script Property Placeholders",
            "description" : "Whether the script should support using Camel property placeholder syntax {{ }}.",
            "default" : "true"
          },
```

This commit fixes this issue at the Entity and Pattern level by
adjusting the default value to its right type.

A fix for this was provided in Camel upstream here: apache/camel#19753
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments