{"action":"created","issue":{"url":"https://api.github.com/repos/sbt/contraband/issues/66","repository_url":"https://api.github.com/repos/sbt/contraband","labels_url":"https://api.github.com/repos/sbt/contraband/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/sbt/contraband/issues/66/comments","events_url":"https://api.github.com/repos/sbt/contraband/issues/66/events","html_url":"https://github.com/sbt/contraband/issues/66","id":195744713,"number":66,"title":"Rolling deprecation support","user":{"login":"eed3si9n","id":184683,"avatar_url":"https://avatars.githubusercontent.com/u/184683?v=3","gravatar_id":"","url":"https://api.github.com/users/eed3si9n","html_url":"https://github.com/eed3si9n","followers_url":"https://api.github.com/users/eed3si9n/followers","following_url":"https://api.github.com/users/eed3si9n/following{/other_user}","gists_url":"https://api.github.com/users/eed3si9n/gists{/gist_id}","starred_url":"https://api.github.com/users/eed3si9n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eed3si9n/subscriptions","organizations_url":"https://api.github.com/users/eed3si9n/orgs","repos_url":"https://api.github.com/users/eed3si9n/repos","events_url":"https://api.github.com/users/eed3si9n/events{/privacy}","received_events_url":"https://api.github.com/users/eed3si9n/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-15T08:29:06Z","updated_at":"2016-12-15T09:28:39Z","closed_at":null,"body":"For a contained ecosystem, rolling deprecation feature might be useful.\r\n\r\n```scala\r\ntype Greeting {\r\n  value: String!\r\n  x: Int @since(\"0.2.0\") @deprecated(\"0.3.0\") @remove(\"0.4.0\")\r\n  number: Long @since(\"0.3.0\")\r\n}\r\n```\r\n\r\nThis could generate\r\n\r\n```scala\r\nobject Greeting {\r\n  // 0.0.0\r\n  def apply(value: String): Greeting = new Greeting(value, None, None)\r\n  // 0.2.0\r\n  @deprecated\r\n  def apply(value: String, x: Int): Greeting = new Greeting(value, Some(x), None)\r\n  // 0.3.0\r\n  def apply(value: String, number: Long): Greeting = new Greeting(value, None, Some(number))\r\n}\r\n```\r\n\r\nOnce 0.4.0 is reached, remove the field altogether:\r\n\r\n```scala\r\nobject Greeting {\r\n  // 0.0.0\r\n  def apply(value: String): Greeting = new Greeting(value, None)\r\n  // 0.3.0\r\n  def apply(value: String, number: Long): Greeting = new Greeting(value, Some(number))\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sbt/contraband/issues/comments/267279569","html_url":"https://github.com/sbt/contraband/issues/66#issuecomment-267279569","issue_url":"https://api.github.com/repos/sbt/contraband/issues/66","id":267279569,"user":{"login":"dwijnand","id":344610,"avatar_url":"https://avatars.githubusercontent.com/u/344610?v=3","gravatar_id":"","url":"https://api.github.com/users/dwijnand","html_url":"https://github.com/dwijnand","followers_url":"https://api.github.com/users/dwijnand/followers","following_url":"https://api.github.com/users/dwijnand/following{/other_user}","gists_url":"https://api.github.com/users/dwijnand/gists{/gist_id}","starred_url":"https://api.github.com/users/dwijnand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwijnand/subscriptions","organizations_url":"https://api.github.com/users/dwijnand/orgs","repos_url":"https://api.github.com/users/dwijnand/repos","events_url":"https://api.github.com/users/dwijnand/events{/privacy}","received_events_url":"https://api.github.com/users/dwijnand/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T09:28:39Z","updated_at":"2016-12-15T09:28:39Z","body":"I think it would be simpler to just remove the field from the definition when working towards 0.4.0."}}
{"actor":{"display_login":"dwijnand"}}