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

OpenAPI request always generates random data, even if a body is specified #1168

Closed
ueberfuhr opened this issue May 29, 2024 · 0 comments · Fixed by #1169
Closed

OpenAPI request always generates random data, even if a body is specified #1168

ueberfuhr opened this issue May 29, 2024 · 0 comments · Fixed by #1169

Comments

@ueberfuhr
Copy link
Contributor

Citrus Version
4.2.1

Expected behavior
When I specify a body for the request, this should be sent to the server, independent from being valid in comparison to the OpenAPI schema.

Actual behavior
Random data is sent to the server.

Test case sample

        t.when(
                openapi()
                        .specification(apiSpecification)
                        .client(openApiClient)
                        .send("createTodo") // operationId
                        .message()
                        .body("{\"title\": \"test\"}")
        );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants