Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return Json_decode.map(fromRecord, (function (json) {
return /* record */[
/* type_ */Json_decode.field("type", Json_decode.string, json),
/* rank */Json_decode.field("rank", Json_decode.$$int, json)
];
}), json);
}
function repo(json) {
return /* record */[
/* name */Json_decode.field("name", Json_decode.string, json),
/* description */Json_decode.field("description", (function (param) {
return Json_decode.optional(Json_decode.string, param);
}), json),
/* stars */Json_decode.field("stargazers_count", Json_decode.$$int, json),
/* forks */Json_decode.field("forks_count", Json_decode.$$int, json),
/* openIssues */Json_decode.field("open_issues_count", Json_decode.$$int, json)
];
}
function repo(json) {
return /* record */[
/* name */Json_decode.field("name", Json_decode.string, json),
/* description */Json_decode.field("description", (function (param) {
return Json_decode.optional(Json_decode.string, param);
}), json),
/* stars */Json_decode.field("stargazers_count", Json_decode.$$int, json),
/* forks */Json_decode.field("forks_count", Json_decode.$$int, json),
/* openIssues */Json_decode.field("open_issues_count", Json_decode.$$int, json)
];
}