Skip to content

Add openapi automated test in camel quarkus - #8965

Merged
jamesnetherton merged 1 commit into
apache:mainfrom
JinyuChen97:openapi-automated-test
Aug 5, 2026
Merged

Add openapi automated test in camel quarkus#8965
jamesnetherton merged 1 commit into
apache:mainfrom
JinyuChen97:openapi-automated-test

Conversation

@JinyuChen97

Copy link
Copy Markdown
Contributor

added automate test in camel quarkus to validate request body generated in openapi schema with no consume attribute provided. (Jira related)

…ed in openapi schema with no consume attribute provided.
@aldettinger

Copy link
Copy Markdown
Contributor

@JinyuChen97 Are we testing that a rest route without "consume" statement is working ? Other routes in the tests have this, so are we already covered ? Or maybe we are testing something else.

@JinyuChen97

Copy link
Copy Markdown
Contributor Author

@JinyuChen97 Are we testing that a rest route without "consume" statement is working ? Other routes in the tests have this, so are we already covered ? Or maybe we are testing something else.

Hi @aldettinger, thanks for the feedback, the existing POST routes all explicitly define the consumes attribute. This test covers a different scenario from a downstream jira when consumes is not set, the generated OpenAPI spec was missing the requestBody entirely. The upstream camel fix defaults to application/json in that case, and this test verifies that behavior works in camel quarkus.

@jamesnetherton
jamesnetherton merged commit 56e3c97 into apache:main Aug 5, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants