 
 # validating against a subschema using a JSON Pointer
 
-schema = jsck.validator "urn:jsck.examples.advanced#/definitions/user"
-{valid} = schema.validate
+validator = jsck.validator "urn:jsck.examples.advanced#/definitions/user"
+{valid} = validator.validate
   login: "automatthew"
   email: "automatthew@mailinator.com"
 

        email:
          type: "string"

schema = jsck.validator(uri: "urn:jsck.examples.advanced#")
{valid} = schema.validate
  login: "automatthew"
  email: "automatthew@mailinator.com"


  type: "array"
  items: {$ref: "urn:jsck.examples.advanced#/definitions/user"}

validator = jsck.validator "urn:jsck.examples.user_list#"
{valid} = validator.validate [
  { login: "dyoder" }
  { login: "automatthew" }
]
