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

Fix: Use ISO date format for random JSON property values (OpenAPI) #1167

Closed ueberfuhr closed 1 month ago

ueberfuhr commented 1 month ago

The OpenApiTestDataGenerator creates random values for JOSN properties. When a property has format date, the function citrus:currentDate() was used, which is wrong, because it leads to an invalid date pattern. I fixed this by specifying the correct pattern.

Resolves #1166