{"size": 414, "ext": "js", "max_stars_repo_path": "_schemas/loginlinks.js", "max_stars_repo_name": "cris691/servedata", "max_stars_repo_stars_event_min_datetime": "2020-06-23T01:36:43.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-02T09:07:16.000Z", "max_issues_repo_path": "_schemas/loginlinks.js", "max_issues_repo_name": "cris691/servedata", "max_issues_repo_issues_event_min_datetime": "2020-05-02T10:40:02.000Z", "max_issues_repo_issues_event_max_datetime": "2020-09-02T04:00:38.000Z", "max_forks_repo_path": "_schemas/loginlinks.js", "max_forks_repo_name": "cris691/servedata", "max_forks_repo_forks_event_min_datetime": "2020-06-23T14:31:15.000Z", "max_forks_repo_forks_event_max_datetime": "2020-08-19T18:23:35.000Z"}
{"max_stars_count": 42, "max_issues_count": 22, "max_forks_count": 2, "avg_line_length": 19.7142857143, "max_line_length": 56, "alphanum_fraction": 0.6739130435}
import {T} from 'jtype-system';


T.def('LoginLink', {
  _owner: T`ID`,
  _id: T`ID`,
  userid: T`ID`,
  email: T.maybe(T`Email`),
  expired: T`MaybeBoolean`
}, {
  verify: s => (s.userid+'').length < 200
});

export default function validate(loginLink) {
  return T.errors(T`LoginLink`, loginLink);
}

export function validatePartial(partialLoginLink) {
  return T.partialMatch(T`LoginLink`, partialLoginLink);
}
