We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b59763d commit 0e76768Copy full SHA for 0e76768
core/src/test/java/org/everit/json/schema/EnumSchemaTest.java
@@ -97,8 +97,7 @@ public void toStringTest() {
97
StringWriter buffer = new StringWriter();
98
subject().build().describeTo(new JSONPrinter(buffer));
99
JSONObject actual = new JSONObject(buffer.getBuffer().toString());
100
- assertEquals(2, JSONObject.getNames(actual).length);
101
- assertEquals(null, actual.get("type"));
+ assertEquals(1, JSONObject.getNames(actual).length);
102
JSONArray pv = new JSONArray(asList(true, "foo"));
103
assertEquals(asSet(pv), asSet(actual.getJSONArray("enum")));
104
}
0 commit comments