{"action":"created","issue":{"url":"https://api.github.com/repos/ethercis/ehrservice/issues/1","repository_url":"https://api.github.com/repos/ethercis/ehrservice","labels_url":"https://api.github.com/repos/ethercis/ehrservice/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ethercis/ehrservice/issues/1/comments","events_url":"https://api.github.com/repos/ethercis/ehrservice/issues/1/events","html_url":"https://github.com/ethercis/ehrservice/pull/1","id":236912088,"number":1,"title":"do not use archetypeconstraint after changeType","user":{"login":"ralphvanetten","id":1533323,"avatar_url":"https://avatars0.githubusercontent.com/u/1533323?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphvanetten","html_url":"https://github.com/ralphvanetten","followers_url":"https://api.github.com/users/ralphvanetten/followers","following_url":"https://api.github.com/users/ralphvanetten/following{/other_user}","gists_url":"https://api.github.com/users/ralphvanetten/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphvanetten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphvanetten/subscriptions","organizations_url":"https://api.github.com/users/ralphvanetten/orgs","repos_url":"https://api.github.com/users/ralphvanetten/repos","events_url":"https://api.github.com/users/ralphvanetten/events{/privacy}","received_events_url":"https://api.github.com/users/ralphvanetten/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-06-19T14:35:41Z","updated_at":"2017-07-04T07:56:19Z","closed_at":"2017-07-04T07:12:23Z","pull_request":{"url":"https://api.github.com/repos/ethercis/ehrservice/pulls/1","html_url":"https://github.com/ethercis/ehrservice/pull/1","diff_url":"https://github.com/ethercis/ehrservice/pull/1.diff","patch_url":"https://github.com/ethercis/ehrservice/pull/1.patch"},"body":"After calling `changeType()` you're not allowed to use the object anymore (see the `XMLObject` [documentation] ) so I fixed it by not using `archetypeconstraint` anymore after the call to `changeType()` and cleaned up the casts.\r\n\r\nNot sure why this was causing issues for me. Probably has something to do with the xmlbeans versions I'm using or something else.\r\n\r\nWithout this fix it throws `XmlValueDisconnectedException` when validating.\r\n \r\n\r\n[documentation]:\r\n https://xmlbeans.apache.org/docs/2.0.0/reference/org/apache/xmlbeans/XmlObject.html#changeType(org.apache.xmlbeans.SchemaType)"},"comment":{"url":"https://api.github.com/repos/ethercis/ehrservice/issues/comments/312807792","html_url":"https://github.com/ethercis/ehrservice/pull/1#issuecomment-312807792","issue_url":"https://api.github.com/repos/ethercis/ehrservice/issues/1","id":312807792,"user":{"login":"ralphvanetten","id":1533323,"avatar_url":"https://avatars0.githubusercontent.com/u/1533323?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphvanetten","html_url":"https://github.com/ralphvanetten","followers_url":"https://api.github.com/users/ralphvanetten/followers","following_url":"https://api.github.com/users/ralphvanetten/following{/other_user}","gists_url":"https://api.github.com/users/ralphvanetten/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphvanetten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphvanetten/subscriptions","organizations_url":"https://api.github.com/users/ralphvanetten/orgs","repos_url":"https://api.github.com/users/ralphvanetten/repos","events_url":"https://api.github.com/users/ralphvanetten/events{/privacy}","received_events_url":"https://api.github.com/users/ralphvanetten/received_events","type":"User","site_admin":false},"created_at":"2017-07-04T07:56:19Z","updated_at":"2017-07-04T07:56:19Z","body":"Thanks for merging. Can you confirm all tests in the validator are working as expected if you run them using maven? Thanks."}}
{"actor":{"display_login":"ralphvanetten"}}