{"action":"opened","issue":{"url":"https://api.github.com/repos/swisscom/cleanerversion/issues/67","labels_url":"https://api.github.com/repos/swisscom/cleanerversion/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/swisscom/cleanerversion/issues/67/comments","events_url":"https://api.github.com/repos/swisscom/cleanerversion/issues/67/events","html_url":"https://github.com/swisscom/cleanerversion/issues/67","id":65224397,"number":67,"title":"Allow specifying id when creating objects","user":{"login":"brki","id":697240,"avatar_url":"https://avatars.githubusercontent.com/u/697240?v=3","gravatar_id":"","url":"https://api.github.com/users/brki","html_url":"https://github.com/brki","followers_url":"https://api.github.com/users/brki/followers","following_url":"https://api.github.com/users/brki/following{/other_user}","gists_url":"https://api.github.com/users/brki/gists{/gist_id}","starred_url":"https://api.github.com/users/brki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brki/subscriptions","organizations_url":"https://api.github.com/users/brki/orgs","repos_url":"https://api.github.com/users/brki/repos","events_url":"https://api.github.com/users/brki/events{/privacy}","received_events_url":"https://api.github.com/users/brki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-30T14:26:06Z","updated_at":"2015-03-30T14:26:06Z","closed_at":null,"body":"Let CleanerVersion do the following:\r\n * validate that id, if provided, is a valid UUID v4 string\r\n * set identity = id (and of course generate id if not provided)\r\n\r\nHere's some code that validates uuid4: https://gist.github.com/ShawnMilo/7777304  (but would need to strip '-' and '{' and '}' characters first for comparing)\r\n\r\nSince the id is the primary key column, the database will enforce uniqueness.\r\n\r\nIt is possible, if a really bad random number generator is used, that uuid collisions will happen.  Add a clear warning in the docs."}}