Paulo Lory
08/06/2025, 10:24 AMLee Turner
08/06/2025, 11:02 AMPaulo Lory
08/06/2025, 3:13 PMMathieu
08/19/2025, 5:19 PMWithJSONBody
should take something that serializes to JSON instead of a json string. That would probably break the API though, but it might be worth itMathieu
08/19/2025, 5:30 PMjsonData := map[string]interface{}{
"name": "{{jsonPath request.body '$.metadata.name'}}",
}
WillReturnResponse(
wiremock.NewResponse().
WithStatus(int64(stubMetadata.ScenarioHttpStatus)).
WithHeader("Content-Type", "application/json").
WithJSONBody(jsonData),