Paul Poulain
04/09/2025, 3:53 PM./gradlew build
on `master`:
ContentPatternsJsonValidityTest > matchesJsonSchemaValidates() FAILED
java.lang.AssertionError:
Expected: an empty collection
but: <[: must be valid to one and only one schema, but 0 are valid, : required property 'equalTo' not found, : required property 'binaryEqualTo' not found, : required property 'contains' not found, : required property 'doesNotContain' not found, : required property 'matches' not found, : required property 'doesNotMatch' not found, : required property 'not' not found, : required property 'before' not found, : required property 'after' not found, : required property 'equalToDateTime' not found, : required property 'equalToJson' not found, : required property 'matchesJsonPath' not found, : required property 'equalToXml' not found, : required property 'matchesXPath' not found, /matchesJsonSchema: string found, object expected, : required property 'absent' not found, : required property 'and' not found, : required property 'or' not found, : required property 'hasExactly' not found, : required property 'includes' not found]>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at com.github.tomakehurst.wiremock.ContentPatternsJsonValidityTest.matchesJsonSchemaValidates(ContentPatternsJsonValidityTest.java:158)
I actually get two failures as the body of matchesJsonSchemaValidates
is duplicated a few lines down in matchesJsonSchemaWithVersionValidates
which obviously isn't intentional but I can remove the second test if required.Paul Poulain
04/09/2025, 4:16 PMPaul Poulain
04/10/2025, 2:53 PMmaster
branch originally so we had to rename it main
. We've resolved that now but spotless was pointing at the old main
branch 🤦♂️ )Tom
04/22/2025, 4:31 PMPaul Poulain
04/23/2025, 8:32 AM