     if @tests[uri]
       validate: (data) =>
         valid: @tests[uri](data)
+        errors: ["Error report not implemented"]
       toJSON: (args...) =>
-        @references[uri]
+        @uris[uri]
     else
       throw new Error "No schema found for '#{uri}'"
 
   find: (arg) ->
     if @test_type "string", arg
       uri = escape(arg)
-      @references[uri]
+      @uris[uri]
     else if media_type = arg.mediaType
       @media_types[media_type]
     else

    # Here, we treat non-JSON-pointer fragments (such as "#user") as aliases.
    if schema.id && schema.id.indexOf("#") == 0
      uri = URI.resolve scope, schema.id
      @register uri, schema

    if @test_type "object", schema



  constructor: (schemas...) ->
    @uris = {}
    @media_types = {}
    @tests = {}
    @unresolved = {}
