payload: {"action":"created","issue":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/issues/177","repository_url":"https://api.github.com/repos/ballerina-platform/ballerina-spec","labels_url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/issues/177/comments","events_url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/issues/177/events","html_url":"https://github.com/ballerina-platform/ballerina-spec/issues/177","id":451140118,"node_id":"MDU6SXNzdWU0NTExNDAxMTg=","number":177,"title":"More precise typing of XML elements","user":{"login":"jclark","id":499966,"node_id":"MDQ6VXNlcjQ5OTk2Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/499966?v=4","gravatar_id":"","url":"https://api.github.com/users/jclark","html_url":"https://github.com/jclark","followers_url":"https://api.github.com/users/jclark/followers","following_url":"https://api.github.com/users/jclark/following{/other_user}","gists_url":"https://api.github.com/users/jclark/gists{/gist_id}","starred_url":"https://api.github.com/users/jclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclark/subscriptions","organizations_url":"https://api.github.com/users/jclark/orgs","repos_url":"https://api.github.com/users/jclark/repos","events_url":"https://api.github.com/users/jclark/events{/privacy}","received_events_url":"https://api.github.com/users/jclark/received_events","type":"User","site_admin":false},"labels":[{"id":1279362843,"node_id":"MDU6TGFiZWwxMjc5MzYyODQz","url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/labels/enhancement","name":"enhancement","color":"dd0680","default":true},{"id":1286869210,"node_id":"MDU6TGFiZWwxMjg2ODY5MjEw","url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/labels/lang","name":"lang","color":"04775d","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/milestones/3","html_url":"https://github.com/ballerina-platform/ballerina-spec/milestone/3","labels_url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/milestones/3/labels","id":4236314,"node_id":"MDk6TWlsZXN0b25lNDIzNjMxNA==","number":3,"title":"2019Rn","description":"Things to be implemented in some release in 2019.","creator":{"login":"jclark","id":499966,"node_id":"MDQ6VXNlcjQ5OTk2Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/499966?v=4","gravatar_id":"","url":"https://api.github.com/users/jclark","html_url":"https://github.com/jclark","followers_url":"https://api.github.com/users/jclark/followers","following_url":"https://api.github.com/users/jclark/following{/other_user}","gists_url":"https://api.github.com/users/jclark/gists{/gist_id}","starred_url":"https://api.github.com/users/jclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclark/subscriptions","organizations_url":"https://api.github.com/users/jclark/orgs","repos_url":"https://api.github.com/users/jclark/repos","events_url":"https://api.github.com/users/jclark/events{/privacy}","received_events_url":"https://api.github.com/users/jclark/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":0,"state":"open","created_at":"2019-04-17T02:01:45Z","updated_at":"2019-06-03T01:12:46Z","due_on":"2019-12-31T08:00:00Z","closed_at":null},"comments":1,"created_at":"2019-06-02T00:59:45Z","updated_at":"2019-06-03T05:36:18Z","closed_at":null,"author_association":"COLLABORATOR","body":"We can build on #176 to provide more precise typing of XML elements, by making an xmlelement have type parameters `xmlelement<E,A,C>`, where\r\n\r\n- E is a subtype of string specifying the element name\r\n- A is a subtype of `map<string>` specifying attributes, and\r\n- C is a subtype of `xml<xmlelement|string>` specifying type of `x.getChildren().strip()` (this is because you want comments, PIs, and whitespace to always automatically allowed)\r\n\r\nWe can then use our type system to write a useful schema for an XML document. Other things that would make this work better include:\r\n\r\n- add xml.getChildrenStrip()\r\n- xmlempty that matches an empty xml sequence (for empty elements)\r\n- if ns is declared as a namespace prefix\r\n   - allow ns:x as a const string and type standing for the corresponding expanded name\r\n   - allow ns:foo as the name of a field in a record type (for namespace qualified attributes)\r\n  - allow `ns:*` as a subtype of string type\r\n\r\nThis doesn't deal with the ordering or cardinality of child elements. I think ordering would be very hard, but perhaps cardinality is doable. By cardinality I mean saying that this element has between M and N elements named foo (typically M is 0 or 1 and M is 1 or unlimited).\r\n"},"comment":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/issues/comments/498118941","html_url":"https://github.com/ballerina-platform/ballerina-spec/issues/177#issuecomment-498118941","issue_url":"https://api.github.com/repos/ballerina-platform/ballerina-spec/issues/177","id":498118941,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5ODExODk0MQ==","user":{"login":"jclark","id":499966,"node_id":"MDQ6VXNlcjQ5OTk2Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/499966?v=4","gravatar_id":"","url":"https://api.github.com/users/jclark","html_url":"https://github.com/jclark","followers_url":"https://api.github.com/users/jclark/followers","following_url":"https://api.github.com/users/jclark/following{/other_user}","gists_url":"https://api.github.com/users/jclark/gists{/gist_id}","starred_url":"https://api.github.com/users/jclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclark/subscriptions","organizations_url":"https://api.github.com/users/jclark/orgs","repos_url":"https://api.github.com/users/jclark/repos","events_url":"https://api.github.com/users/jclark/events{/privacy}","received_events_url":"https://api.github.com/users/jclark/received_events","type":"User","site_admin":false},"created_at":"2019-06-03T05:36:18Z","updated_at":"2019-06-03T05:36:18Z","author_association":"COLLABORATOR","body":"What is cardinality for records in JSON schema?"}}
other: {"actor":{"display_login":"jclark"}}