{"action":"closed","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/1996","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/1996/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/1996/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/1996/events","html_url":"https://github.com/mesosphere/marathon/issues/1996","id":100782193,"number":1996,"title":"Duplicable fields in app creation modal can send null values","user":{"login":"philipnrmn","id":2989362,"avatar_url":"https://avatars.githubusercontent.com/u/2989362?v=3","gravatar_id":"","url":"https://api.github.com/users/philipnrmn","html_url":"https://github.com/philipnrmn","followers_url":"https://api.github.com/users/philipnrmn/followers","following_url":"https://api.github.com/users/philipnrmn/following{/other_user}","gists_url":"https://api.github.com/users/philipnrmn/gists{/gist_id}","starred_url":"https://api.github.com/users/philipnrmn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipnrmn/subscriptions","organizations_url":"https://api.github.com/users/philipnrmn/orgs","repos_url":"https://api.github.com/users/philipnrmn/repos","events_url":"https://api.github.com/users/philipnrmn/events{/privacy}","received_events_url":"https://api.github.com/users/philipnrmn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesosphere/marathon/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mesosphere/marathon/labels/gui","name":"gui","color":"eb6420"},{"url":"https://api.github.com/repos/mesosphere/marathon/labels/ready%20for%20review","name":"ready for review","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"aldipower","id":859154,"avatar_url":"https://avatars.githubusercontent.com/u/859154?v=3","gravatar_id":"","url":"https://api.github.com/users/aldipower","html_url":"https://github.com/aldipower","followers_url":"https://api.github.com/users/aldipower/followers","following_url":"https://api.github.com/users/aldipower/following{/other_user}","gists_url":"https://api.github.com/users/aldipower/gists{/gist_id}","starred_url":"https://api.github.com/users/aldipower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldipower/subscriptions","organizations_url":"https://api.github.com/users/aldipower/orgs","repos_url":"https://api.github.com/users/aldipower/repos","events_url":"https://api.github.com/users/aldipower/events{/privacy}","received_events_url":"https://api.github.com/users/aldipower/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-13T14:26:22Z","updated_at":"2015-08-19T11:40:48Z","closed_at":"2015-08-19T11:40:48Z","body":"- create an app from the UI\r\n- add the parameters `1:2` and `3:4`\r\n- delete the first row (`1:2`)\r\n- hit submit\r\n\r\nThis will generate the following value for `container.parameters`:\r\n`{parameters: [null, {key: \"3\", value: \"4\"}]}`\r\n\r\nNote the extraneous `null` above. The correct JSON would be:\r\n`{parameters: [{key: \"3\", value: \"4\"}]}`\r\n\r\nThe same case affects `container.docker.portMappings` and may affect `env` when PR #124 is merged."}}