@Test public void testReadSchema() throws IOException { byte[] data = Resources.toByteArray( Resources.getResource("schema/test-schemas/schemas/namespace_0/foo/foo.1.schema.json")); Schema schema = JSONSchemaStore.readSchema(data); assertTrue(schema.definesProperty("payload")); }
public static Schema readSchema(byte[] bytes) throws IOException { JSONObject json = Json.readValue(bytes, JSONObject.class); return SchemaLoader.load(json); }
JSONSchemaStore extends SchemaStore<Schema> { public static Schema readSchema(byte[] bytes) throws IOException { JSONObject json = Json.readValue(bytes, JSONObject.class); return SchemaLoader.load(json); } }
JSONSchemaStore extends SchemaStore<Schema> { public static Schema readSchema(byte[] bytes) throws IOException { JSONObject json = Json.readValue(bytes, JSONObject.class); return SchemaLoader.load(json); } protected  JSONSchemaStore(String schemasLocation, IOFunction<String, InputStream> open); }
JSONSchemaStore extends SchemaStore<Schema> { public static Schema readSchema(byte[] bytes) throws IOException { JSONObject json = Json.readValue(bytes, JSONObject.class); return SchemaLoader.load(json); } protected  JSONSchemaStore(String schemasLocation, IOFunction<String, InputStream> open); static JSONSchemaStore of(String schemasLocation, IOFunction<String, InputStream> open); static Schema readSchema(byte[] bytes); }
JSONSchemaStore extends SchemaStore<Schema> { public static Schema readSchema(byte[] bytes) throws IOException { JSONObject json = Json.readValue(bytes, JSONObject.class); return SchemaLoader.load(json); } protected  JSONSchemaStore(String schemasLocation, IOFunction<String, InputStream> open); static JSONSchemaStore of(String schemasLocation, IOFunction<String, InputStream> open); static Schema readSchema(byte[] bytes);  }