def validate(args):
    from six.moves.urllib.request import urlopen

    json_data = Recorder.open_with_basic_auth(args.json_source, args.auth).read()
    validator = Validator.from_path(args.json_schema_file_path)
    is_valid = validator.assert_json(json_data)

    if is_valid:
        print(" * JSON is valid")
    else:
        print(" ! JSON is broken ")
        print(validator.error_message)