{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1400","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1400/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1400/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1400/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1400","id":90047145,"number":1400,"title":"Subs of \"allOf\" definitiions get all properties of the ensemble","user":{"login":"gaaf","id":5906877,"avatar_url":"https://avatars.githubusercontent.com/u/5906877?v=3","gravatar_id":"","url":"https://api.github.com/users/gaaf","html_url":"https://github.com/gaaf","followers_url":"https://api.github.com/users/gaaf/followers","following_url":"https://api.github.com/users/gaaf/following{/other_user}","gists_url":"https://api.github.com/users/gaaf/gists{/gist_id}","starred_url":"https://api.github.com/users/gaaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaaf/subscriptions","organizations_url":"https://api.github.com/users/gaaf/orgs","repos_url":"https://api.github.com/users/gaaf/repos","events_url":"https://api.github.com/users/gaaf/events{/privacy}","received_events_url":"https://api.github.com/users/gaaf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/P1","name":"P1","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/milestones/8","html_url":"https://github.com/swagger-api/swagger-ui/milestones/v2.1.1","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/milestones/8/labels","id":1155156,"number":8,"title":"v2.1.1","description":"","creator":{"login":"webron","id":241629,"avatar_url":"https://avatars.githubusercontent.com/u/241629?v=3","gravatar_id":"","url":"https://api.github.com/users/webron","html_url":"https://github.com/webron","followers_url":"https://api.github.com/users/webron/followers","following_url":"https://api.github.com/users/webron/following{/other_user}","gists_url":"https://api.github.com/users/webron/gists{/gist_id}","starred_url":"https://api.github.com/users/webron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webron/subscriptions","organizations_url":"https://api.github.com/users/webron/orgs","repos_url":"https://api.github.com/users/webron/repos","events_url":"https://api.github.com/users/webron/events{/privacy}","received_events_url":"https://api.github.com/users/webron/received_events","type":"User","site_admin":false},"open_issues":44,"closed_issues":0,"state":"open","created_at":"2015-06-08T15:40:01Z","updated_at":"2015-06-22T09:22:52Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-06-22T08:54:31Z","updated_at":"2015-06-22T14:41:57Z","closed_at":null,"body":"When defining a \"allOf\" definition, a part which is referenced gets all the properties the ensemble gets. It should keep only its own properties.\r\n\r\nIn the example below, the \"Param\" definition incorrectly gets the \"param2\" property from the \"ParamExtended\" definition in the ui. It should only have the \"test\" property.\r\n\r\n\r\nThis is on 2.1.0+ @d75505fb73a6ac4ecbeabc47bd5a42b0f4d3f270\r\n```json\r\n{\r\n\t\"swagger\": \"2.0\",\r\n\t\"basePath\": \"/\", \r\n\t\"schemes\": [\r\n\t\t\"https\"\r\n\t],\r\n\t\"info\": {\r\n\t\t\"version\": \"2.1.0\",\r\n\t\t\"title\": \"allOf bug demo\"\r\n\t},\r\n\t\"paths\": {\r\n\t\t\"/allof\": {\r\n\t\t\t\"post\": {\r\n\t\t\t\t\"parameters\": [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\"name\": \"param\",\r\n\t\t\t\t\t\t\"in\": \"body\",\r\n\t\t\t\t\t\t\"required\": true,\r\n\t\t\t\t\t\t\"schema\": {\r\n\t\t\t\t\t\t\t\"$ref\": \"#/definitions/Param\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\t\"responses\": {\r\n\t\t\t\t\t\"default\": {\r\n\t\t\t\t\t\t\"description\": \"Return\"\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t\"definitions\": {\r\n\t\t\"Param\": {\r\n\t\t\t\"type\": \"object\",\r\n\t\t\t\"properties\": {\r\n\t\t\t\t\"test\": {\r\n\t\t\t\t\t\"type\": \"string\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"ParamExtended\": {\r\n\t\t\t\"allOf\": [\r\n\t\t\t\t{ \"$ref\": \"#/definitions/Param\" },\r\n\t\t\t\t{\r\n\t\t\t\t\t\"type\": \"object\",\r\n\t\t\t\t\t\"properties\": {\r\n\t\t\t\t\t\t\"param2\": {\r\n\t\t\t\t\t\t\t\"type\": \"string\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/114136774","html_url":"https://github.com/swagger-api/swagger-ui/issues/1400#issuecomment-114136774","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1400","id":114136774,"user":{"login":"jasonh-n-austin","id":1305160,"avatar_url":"https://avatars.githubusercontent.com/u/1305160?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonh-n-austin","html_url":"https://github.com/jasonh-n-austin","followers_url":"https://api.github.com/users/jasonh-n-austin/followers","following_url":"https://api.github.com/users/jasonh-n-austin/following{/other_user}","gists_url":"https://api.github.com/users/jasonh-n-austin/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonh-n-austin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonh-n-austin/subscriptions","organizations_url":"https://api.github.com/users/jasonh-n-austin/orgs","repos_url":"https://api.github.com/users/jasonh-n-austin/repos","events_url":"https://api.github.com/users/jasonh-n-austin/events{/privacy}","received_events_url":"https://api.github.com/users/jasonh-n-austin/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T14:41:57Z","updated_at":"2015-06-22T14:41:57Z","body":"Digging into issues a bit deeper, it seems like this might be caught up in moving rendering out of swagger-js and into swagger-ui: https://github.com/swagger-api/swagger-ui/issues/1248. \r\n@fehguy amirite :question: "}}