citrusframework / citrus

Framework for automated integration tests with focus on messaging integration
https://citrusframework.org
Apache License 2.0
445 stars 135 forks source link

OpenAPI payload in request body has wrong date format #1166

Closed ueberfuhr closed 1 month ago

ueberfuhr commented 1 month ago

Citrus Version 4.2.1

Expected behavior When sending a request using the OpenApiRequestActionBuilder, random data is put into the JSON. When the format is date, the format should be yyyy-MM-dd.

Actual behavior The date format is dd-MM-yyyy, which leads to deserialization issues at the HTTP server.

Test case sample

t.when(
        openapi()
                        .specification(apiSpecification)
                        .client(openApiClient)
                        .send("createTodo")
);