{"action":"closed","issue":{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/285","labels_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/285/comments","events_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/285/events","html_url":"https://github.com/bpmn-io/bpmn-js/issues/285","id":76630965,"number":285,"title":"Roundtrip removes mandatory source and target from relationship element","user":{"login":"falko","id":40038,"avatar_url":"https://avatars.githubusercontent.com/u/40038?v=3","gravatar_id":"","url":"https://api.github.com/users/falko","html_url":"https://github.com/falko","followers_url":"https://api.github.com/users/falko/followers","following_url":"https://api.github.com/users/falko/following{/other_user}","gists_url":"https://api.github.com/users/falko/gists{/gist_id}","starred_url":"https://api.github.com/users/falko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falko/subscriptions","organizations_url":"https://api.github.com/users/falko/orgs","repos_url":"https://api.github.com/users/falko/repos","events_url":"https://api.github.com/users/falko/events{/privacy}","received_events_url":"https://api.github.com/users/falko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/labels/miwg","name":"miwg","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T07:22:51Z","updated_at":"2015-05-15T11:25:43Z","closed_at":"2015-05-15T11:25:43Z","body":"6_bpmn.io_FridgeRepairService.bpmn:3: element relationship: Schemas validity error : Element '{http://www.omg.org/spec/BPMN/20100524/MODEL}relationship': Missing child element(s). Expected is ( {http://www.omg.org/spec/BPMN/20100524/MODEL}source ).\r\n\r\nTo reproduce perform roundtrip with this file: [5_Camunda_FridgeRepairService.bpmn](https://gist.github.com/falko/32256e9e3e8723495ced)\r\n\r\nHere is the according portion of the XML Schema:\r\n```xml\r\n\t<xsd:element name=\"relationship\" type=\"tRelationship\"/>\r\n\t<xsd:complexType name=\"tRelationship\">\r\n\t\t<xsd:complexContent>\r\n\t\t\t<xsd:extension base=\"tBaseElement\">\r\n\t\t\t\t<xsd:sequence>\r\n\t\t\t\t\t<xsd:element name=\"source\" type=\"xsd:QName\" minOccurs=\"1\" maxOccurs=\"unbounded\"/>\r\n\t\t\t\t\t<xsd:element name=\"target\" type=\"xsd:QName\" minOccurs=\"1\" maxOccurs=\"unbounded\"/>\r\n\t\t\t\t</xsd:sequence>\r\n\t\t\t\t<xsd:attribute name=\"type\" type=\"xsd:string\" use=\"required\"/>\r\n\t\t\t\t<xsd:attribute name=\"direction\" type=\"tRelationshipDirection\"/>\r\n\t\t\t</xsd:extension>\r\n\t\t</xsd:complexContent>\r\n\t</xsd:complexType>\t\r\n```"}}