@Test public void testSchemaWithOneofs() throws Exception { TestObj testObj = new TestObj(); String actual = JsonSchemaUtils.getSchema(testObj).toString(); String expected = "{\"$schema\":\"http: + "\"title\":\"Test Obj\",\"type\":\"object\",\"additionalProperties\":false," + "\"properties\":{\"prop\":{\"oneOf\":[{\"type\":\"null\",\"title\":\"Not included\"}," + "{\"type\":\"string\"}]}}}"; assertEquals(expected, actual); }
@Override public String toString() { return canonicalString(); }
JsonSchema implements ParsedSchema { @Override public String toString() { return canonicalString(); } }
JsonSchema implements ParsedSchema { @Override public String toString() { return canonicalString(); } JsonSchema(JsonNode jsonNode);  JsonSchema(String schemaString);  JsonSchema(
      JsonNode jsonNode,
      List<SchemaReference> references,
      Map<String, String> resolvedReferences,
      Integer version
  );  JsonSchema(
      String schemaString,
      List<SchemaReference> references,
      Map<String, String> resolvedReferences,
      Integer version
  );  JsonSchema(Schema schemaObj);  JsonSchema(Schema schemaObj, Integer version); private  JsonSchema(
      JsonNode jsonNode,
      Schema schemaObj,
      Integer version,
      List<SchemaReference> references,
      Map<String, String> resolvedReferences,
      String canonicalString
  ); }
JsonSchema implements ParsedSchema { @Override public String toString() { return canonicalString(); } JsonSchema(JsonNode jsonNode);  JsonSchema(String schemaString);  JsonSchema(
      JsonNode jsonNode,
      List<SchemaReference> references,
      Map<String, String> resolvedReferences,
      Integer version
  );  JsonSchema(
      String schemaString,
      List<SchemaReference> references,
      Map<String, String> resolvedReferences,
      Integer version
  );  JsonSchema(Schema schemaObj);  JsonSchema(Schema schemaObj, Integer version); private  JsonSchema(
      JsonNode jsonNode,
      Schema schemaObj,
      Integer version,
      List<SchemaReference> references,
      Map<String, String> resolvedReferences,
      String canonicalString
  ); JsonSchema copy(); JsonSchema copy(Integer version); JsonNode toJsonNode(); @Override Schema rawSchema(); @Override String schemaType(); @Override String name(); String getString(String key); @Override String canonicalString(); Integer version(); @Override List<SchemaReference> references(); Map<String, String> resolvedReferences(); @Override void validate(); void validate(Object value); @Override List<String> isBackwardCompatible(ParsedSchema previousSchema); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
JsonSchema implements ParsedSchema { @Override public String toString() { return canonicalString(); } JsonSchema(JsonNode jsonNode);  JsonSchema(String schemaString);  JsonSchema(
      JsonNode jsonNode,
      List<SchemaReference> references,
      Map<String, String> resolvedReferences,
      Integer version
  );  JsonSchema(
      String schemaString,
      List<SchemaReference> references,
      Map<String, String> resolvedReferences,
      Integer version
  );  JsonSchema(Schema schemaObj);  JsonSchema(Schema schemaObj, Integer version); private  JsonSchema(
      JsonNode jsonNode,
      Schema schemaObj,
      Integer version,
      List<SchemaReference> references,
      Map<String, String> resolvedReferences,
      String canonicalString
  ); JsonSchema copy(); JsonSchema copy(Integer version); JsonNode toJsonNode(); @Override Schema rawSchema(); @Override String schemaType(); @Override String name(); String getString(String key); @Override String canonicalString(); Integer version(); @Override List<SchemaReference> references(); Map<String, String> resolvedReferences(); @Override void validate(); void validate(Object value); @Override List<String> isBackwardCompatible(ParsedSchema previousSchema); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String TYPE; }