Skip to content

Commit

Permalink
Fix json schema serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
trickl committed Feb 28, 2019
1 parent 349227b commit cfdfb26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public S jsonSchemaAsExpected() throws IOException {
}

JsonSchema jsonSchema = jsonSchema(actual);
String jsonString = jsonSchema.toString();
String jsonString = objectMapper.writeValueAsString(jsonSchema);
com.trickl.assertj.core.api.Assertions.assertThat(json(jsonString))
.allowingAnyArrayOrdering()
.writeActualToFileOnFailure()
Expand Down

0 comments on commit cfdfb26

Please sign in to comment.