Open
Description
In the ValidateUntrusted
examples, these two code samples are the same but one indicates it should work and one indicates it should throw an exception:
// Returns: true
validateUntrusted(
gson.fromJson("{ \"type\": \"string\" }", Schema.class),
new GsonAdapter(gson.fromJson("\"foo\"", JsonElement.class)));
// Raises:
//
// com.jsontypedef.jtd.InvalidSchemaException: ref to non-existent definition
validateUntrusted(
gson.fromJson("{ \"type\": \"string\" }", Schema.class),
new GsonAdapter(gson.fromJson("\"foo\"", JsonElement.class)));
Metadata
Metadata
Assignees
Labels
No labels