json schema library ruby porting from http://code.google.com/p/jsonschema/