{"action":"opened","issue":{"url":"https://api.github.com/repos/marklogic/entity-services/issues/263","repository_url":"https://api.github.com/repos/marklogic/entity-services","labels_url":"https://api.github.com/repos/marklogic/entity-services/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/marklogic/entity-services/issues/263/comments","events_url":"https://api.github.com/repos/marklogic/entity-services/issues/263/events","html_url":"https://github.com/marklogic/entity-services/issues/263","id":211832637,"number":263,"title":"schema-ge() returns different results for xml and json when an entity type has duplicate property name","user":{"login":"bsrikan","id":16124406,"avatar_url":"https://avatars2.githubusercontent.com/u/16124406?v=3","gravatar_id":"","url":"https://api.github.com/users/bsrikan","html_url":"https://github.com/bsrikan","followers_url":"https://api.github.com/users/bsrikan/followers","following_url":"https://api.github.com/users/bsrikan/following{/other_user}","gists_url":"https://api.github.com/users/bsrikan/gists{/gist_id}","starred_url":"https://api.github.com/users/bsrikan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsrikan/subscriptions","organizations_url":"https://api.github.com/users/bsrikan/orgs","repos_url":"https://api.github.com/users/bsrikan/repos","events_url":"https://api.github.com/users/bsrikan/events{/privacy}","received_events_url":"https://api.github.com/users/bsrikan/received_events","type":"User","site_admin":false},"labels":[{"id":381831343,"url":"https://api.github.com/repos/marklogic/entity-services/labels/aesthetic","name":"aesthetic","color":"0e8a16","default":false},{"id":312019485,"url":"https://api.github.com/repos/marklogic/entity-services/labels/Bug","name":"Bug","color":"fc2929","default":false},{"id":381830957,"url":"https://api.github.com/repos/marklogic/entity-services/labels/minor","name":"minor","color":"e99695","default":false}],"state":"open","locked":false,"assignee":{"login":"grechaw","id":382672,"avatar_url":"https://avatars0.githubusercontent.com/u/382672?v=3","gravatar_id":"","url":"https://api.github.com/users/grechaw","html_url":"https://github.com/grechaw","followers_url":"https://api.github.com/users/grechaw/followers","following_url":"https://api.github.com/users/grechaw/following{/other_user}","gists_url":"https://api.github.com/users/grechaw/gists{/gist_id}","starred_url":"https://api.github.com/users/grechaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechaw/subscriptions","organizations_url":"https://api.github.com/users/grechaw/orgs","repos_url":"https://api.github.com/users/grechaw/repos","events_url":"https://api.github.com/users/grechaw/events{/privacy}","received_events_url":"https://api.github.com/users/grechaw/received_events","type":"User","site_admin":false},"assignees":[{"login":"grechaw","id":382672,"avatar_url":"https://avatars0.githubusercontent.com/u/382672?v=3","gravatar_id":"","url":"https://api.github.com/users/grechaw","html_url":"https://github.com/grechaw","followers_url":"https://api.github.com/users/grechaw/followers","following_url":"https://api.github.com/users/grechaw/following{/other_user}","gists_url":"https://api.github.com/users/grechaw/gists{/gist_id}","starred_url":"https://api.github.com/users/grechaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechaw/subscriptions","organizations_url":"https://api.github.com/users/grechaw/orgs","repos_url":"https://api.github.com/users/grechaw/repos","events_url":"https://api.github.com/users/grechaw/events{/privacy}","received_events_url":"https://api.github.com/users/grechaw/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/marklogic/entity-services/milestones/3","html_url":"https://github.com/marklogic/entity-services/milestone/3","labels_url":"https://api.github.com/repos/marklogic/entity-services/milestones/3/labels","id":1562163,"number":3,"title":"9.0-1","description":"","creator":{"login":"grechaw","id":382672,"avatar_url":"https://avatars0.githubusercontent.com/u/382672?v=3","gravatar_id":"","url":"https://api.github.com/users/grechaw","html_url":"https://github.com/grechaw","followers_url":"https://api.github.com/users/grechaw/followers","following_url":"https://api.github.com/users/grechaw/following{/other_user}","gists_url":"https://api.github.com/users/grechaw/gists{/gist_id}","starred_url":"https://api.github.com/users/grechaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechaw/subscriptions","organizations_url":"https://api.github.com/users/grechaw/orgs","repos_url":"https://api.github.com/users/grechaw/repos","events_url":"https://api.github.com/users/grechaw/events{/privacy}","received_events_url":"https://api.github.com/users/grechaw/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":0,"state":"open","created_at":"2016-02-03T22:46:31Z","updated_at":"2017-03-03T23:48:50Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-03-03T23:48:50Z","updated_at":"2017-03-03T23:48:50Z","closed_at":null,"body":"This issue was found when testing #212 .\r\n\r\nSample doc: Attached a zip file\r\n\r\nQuery:\r\nimport module namespace es = 'http://marklogic.com/entity-services' at '/MarkLogic/entity-services/entity-services.xqy';\r\n\r\nes:schema-generate( es:model-validate(doc('invalid-bug43212.json'))),\r\nes:schema-generate( es:model-from-xml( fn:doc( 'invalid-bug43212.xml')))\r\n\r\n\r\n\r\n[Test Input file.zip](https://github.com/marklogic/entity-services/files/818201/Test.Input.file.zip)\r\n[Test Input file.zip](https://github.com/marklogic/entity-services/files/818202/Test.Input.file.zip)\r\n\r\nIssue:\r\nWith JSON input file schema-gen() returns an additional comment as below:\r\n```\r\n<!--\r\nXSD schemas prohibit duplicate element names. This element is commented out because it conflicts with another of the same name.\r\n <xs:element name=\"OrderID\" type=\"xs:string\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"/> \r\n-->\r\n```\r\n\r\n"}}
{"actor":{"display_login":"bsrikan"}}