 # a schema declaring a URI with "id"
 
 validator = new Validator
-  id: "urn:jsck.examples.basic#"
-  type: "object"
+  id: "urn:jsck.examples.advanced#"
   definitions:
     user:
       type: "object"

  login: "automatthew"
  email: "automatthew@mailinator.com"

{valid} = validator.validate_schema "urn:jsck.examples.basic#/definitions/user", document
console.log "Schema identified by JSON Pointer:", valid

        email:
          type: "string"

{valid} = validator.validate_schema "urn:jsck.examples.advanced#",
  login: "automatthew"
  email: "automatthew@mailinator.com"

console.log "Schema with id:", valid


