Skip to content

Clarify consumes behavior in REST DSL auto binding mode#23243

Merged
Croway merged 1 commit into
apache:mainfrom
Croway:docs/rest-dsl-auto-binding-clarification
May 15, 2026
Merged

Clarify consumes behavior in REST DSL auto binding mode#23243
Croway merged 1 commit into
apache:mainfrom
Croway:docs/rest-dsl-auto-binding-clarification

Conversation

@Croway
Copy link
Copy Markdown
Contributor

@Croway Croway commented May 15, 2026

Summary

  • Document that in auto binding mode, the consumes option is a fallback for format detection (used when Content-Type is absent), not a Content-Type enforcement mechanism
  • Point users to clientRequestValidation(true) for Content-Type enforcement (HTTP 415) or explicit binding modes (json/xml) to restrict available data formats

@github-actions
Copy link
Copy Markdown
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 although they are normally detected and executed by CI.
  • You can label PRs using 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.

@github-actions github-actions Bot added the docs label May 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • docs

⚙️ View full build and test results

@Croway Croway merged commit c1799d1 into apache:main May 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants