{"action":"created","comment":{"url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/comments/25759823","id":25759823,"diff_hunk":"@@ -49,28 +47,29 @@ private TNodeType createNodeType(NodeType value, String name) {\n \t\tnodeTypeImplementation.setImplementationArtifacts(implementationArtifacts);\n \t\tnodeTypeImplementation.setName(name + \"Implementation\");\n \n-\t\tif (value.getArtifacts() != null) {\n+\t\tif (value.getArtifacts() != null && !value.getArtifacts().isEmpty()) {\n \t\t\t// here are only artifact definitions!!\n \t\t\tparseNodeTypeArtifacts(value.getArtifacts(), artifactTemplates, implementationArtifacts);\n \t\t}\n-\t\tif (value.getCapabilities() != null) {\n+\t\tif (value.getCapabilities() != null && !value.getCapabilities().isEmpty()) {\n \t\t\tresult.setCapabilityDefinitions(parseNodeTypeCapabilities(value.getCapabilities()));\n \t\t}\n-\t\tif (value.getDerived_from() != null) {\n+\t\tif (value.getDerived_from() != null && !value.getDerived_from().isEmpty()) {\n \t\t\tresult.setDerivedFrom(parseDerivedFrom(value.getDerived_from()));\n \t\t}\n-\t\tif (value.getInterfaces() != null) {\n+\t\tif (value.getInterfaces() != null && !value.getInterfaces().isEmpty()) {\n \t\t\tfinal Interfaces nodeTypeInterfaces = parseNodeTypeInterfaces(value.getInterfaces());\n \t\t\taddInterfaceDefinitionsToImplementationArtifacts(implementationArtifacts, nodeTypeInterfaces);\n \t\t\tresult.setInterfaces(nodeTypeInterfaces);\n \t\t}\n-\t\tif (value.getProperties() != null) {\n+\t\tif (value.getProperties() != null && !value.getProperties().isEmpty()) {\n \t\t\tresult.setPropertiesDefinition(parsePropertiesDefinition(value.getProperties(), name));\n \t\t}\n-\t\tif (value.getRequirements() != null) {\n-\t\t\tresult.setRequirementDefinitions(parseNodeTypeRequirementDefinitions(value.getRequirements()));\n-\t\t}\n-\t\tif (value.getDescription() != null) {\n+\t\t// TODO: This does not work and crashes Winery!","path":"org.opentosca.yamlconverter.main/src/main/java/org/opentosca/yamlconverter/switchmapper/NodeTypesSubSwitch.java","position":40,"original_position":40,"commit_id":"cd26dde8ef0b8f9d741d361870db7c238dbc1dab","original_commit_id":"cd26dde8ef0b8f9d741d361870db7c238dbc1dab","user":{"login":"seeebiii","id":1901723,"avatar_url":"https://avatars.githubusercontent.com/u/1901723?v=3","gravatar_id":"","url":"https://api.github.com/users/seeebiii","html_url":"https://github.com/seeebiii","followers_url":"https://api.github.com/users/seeebiii/followers","following_url":"https://api.github.com/users/seeebiii/following{/other_user}","gists_url":"https://api.github.com/users/seeebiii/gists{/gist_id}","starred_url":"https://api.github.com/users/seeebiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seeebiii/subscriptions","organizations_url":"https://api.github.com/users/seeebiii/orgs","repos_url":"https://api.github.com/users/seeebiii/repos","events_url":"https://api.github.com/users/seeebiii/events{/privacy}","received_events_url":"https://api.github.com/users/seeebiii/received_events","type":"User","site_admin":false},"body":"This should be fixed in a few days, but you're right: it makes sense to comment it till the fix","created_at":"2015-03-04T08:57:42Z","updated_at":"2015-03-04T08:57:42Z","html_url":"https://github.com/CloudCycle2/YAML_Transformer/pull/93#discussion_r25759823","pull_request_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/93","_links":{"self":{"href":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/comments/25759823"},"html":{"href":"https://github.com/CloudCycle2/YAML_Transformer/pull/93#discussion_r25759823"},"pull_request":{"href":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/93","id":30393753,"html_url":"https://github.com/CloudCycle2/YAML_Transformer/pull/93","diff_url":"https://github.com/CloudCycle2/YAML_Transformer/pull/93.diff","patch_url":"https://github.com/CloudCycle2/YAML_Transformer/pull/93.patch","issue_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/issues/93","number":93,"state":"open","locked":false,"title":"Namespacefix","user":{"login":"jonasheinisch","id":9076901,"avatar_url":"https://avatars.githubusercontent.com/u/9076901?v=3","gravatar_id":"","url":"https://api.github.com/users/jonasheinisch","html_url":"https://github.com/jonasheinisch","followers_url":"https://api.github.com/users/jonasheinisch/followers","following_url":"https://api.github.com/users/jonasheinisch/following{/other_user}","gists_url":"https://api.github.com/users/jonasheinisch/gists{/gist_id}","starred_url":"https://api.github.com/users/jonasheinisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonasheinisch/subscriptions","organizations_url":"https://api.github.com/users/jonasheinisch/orgs","repos_url":"https://api.github.com/users/jonasheinisch/repos","events_url":"https://api.github.com/users/jonasheinisch/events{/privacy}","received_events_url":"https://api.github.com/users/jonasheinisch/received_events","type":"User","site_admin":false},"body":"#92 ","created_at":"2015-03-03T17:22:33Z","updated_at":"2015-03-04T08:57:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e1cecc0db151761a84e08fbafef00ef4afdc224","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/93/commits","review_comments_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/93/comments","review_comment_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/issues/93/comments","statuses_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/statuses/cd26dde8ef0b8f9d741d361870db7c238dbc1dab","head":{"label":"jonasheinisch:namespacefix","ref":"namespacefix","sha":"cd26dde8ef0b8f9d741d361870db7c238dbc1dab","user":{"login":"jonasheinisch","id":9076901,"avatar_url":"https://avatars.githubusercontent.com/u/9076901?v=3","gravatar_id":"","url":"https://api.github.com/users/jonasheinisch","html_url":"https://github.com/jonasheinisch","followers_url":"https://api.github.com/users/jonasheinisch/followers","following_url":"https://api.github.com/users/jonasheinisch/following{/other_user}","gists_url":"https://api.github.com/users/jonasheinisch/gists{/gist_id}","starred_url":"https://api.github.com/users/jonasheinisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonasheinisch/subscriptions","organizations_url":"https://api.github.com/users/jonasheinisch/orgs","repos_url":"https://api.github.com/users/jonasheinisch/repos","events_url":"https://api.github.com/users/jonasheinisch/events{/privacy}","received_events_url":"https://api.github.com/users/jonasheinisch/received_events","type":"User","site_admin":false},"repo":{"id":28085049,"name":"YAML_Transformer","full_name":"jonasheinisch/YAML_Transformer","owner":{"login":"jonasheinisch","id":9076901,"avatar_url":"https://avatars.githubusercontent.com/u/9076901?v=3","gravatar_id":"","url":"https://api.github.com/users/jonasheinisch","html_url":"https://github.com/jonasheinisch","followers_url":"https://api.github.com/users/jonasheinisch/followers","following_url":"https://api.github.com/users/jonasheinisch/following{/other_user}","gists_url":"https://api.github.com/users/jonasheinisch/gists{/gist_id}","starred_url":"https://api.github.com/users/jonasheinisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonasheinisch/subscriptions","organizations_url":"https://api.github.com/users/jonasheinisch/orgs","repos_url":"https://api.github.com/users/jonasheinisch/repos","events_url":"https://api.github.com/users/jonasheinisch/events{/privacy}","received_events_url":"https://api.github.com/users/jonasheinisch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonasheinisch/YAML_Transformer","description":"Repository of the YAML transformer","fork":true,"url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer","forks_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/forks","keys_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/teams","hooks_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/hooks","issue_events_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/issues/events{/number}","events_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/events","assignees_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/assignees{/user}","branches_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/branches{/branch}","tags_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/tags","blobs_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/statuses/{sha}","languages_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/languages","stargazers_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/stargazers","contributors_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/contributors","subscribers_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/subscribers","subscription_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/subscription","commits_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/contents/{+path}","compare_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/merges","archive_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/downloads","issues_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/issues{/number}","pulls_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/pulls{/number}","milestones_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/milestones{/number}","notifications_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/labels{/name}","releases_url":"https://api.github.com/repos/jonasheinisch/YAML_Transformer/releases{/id}","created_at":"2014-12-16T11:59:03Z","updated_at":"2015-03-03T15:10:22Z","pushed_at":"2015-03-03T17:21:20Z","git_url":"git://github.com/jonasheinisch/YAML_Transformer.git","ssh_url":"git@github.com:jonasheinisch/YAML_Transformer.git","clone_url":"https://github.com/jonasheinisch/YAML_Transformer.git","svn_url":"https://github.com/jonasheinisch/YAML_Transformer","homepage":null,"size":34641,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CloudCycle2:master","ref":"master","sha":"462cd3bab0c3deefd4b0e485f54e0a6c480b9d09","user":{"login":"CloudCycle2","id":9609816,"avatar_url":"https://avatars.githubusercontent.com/u/9609816?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudCycle2","html_url":"https://github.com/CloudCycle2","followers_url":"https://api.github.com/users/CloudCycle2/followers","following_url":"https://api.github.com/users/CloudCycle2/following{/other_user}","gists_url":"https://api.github.com/users/CloudCycle2/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCycle2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCycle2/subscriptions","organizations_url":"https://api.github.com/users/CloudCycle2/orgs","repos_url":"https://api.github.com/users/CloudCycle2/repos","events_url":"https://api.github.com/users/CloudCycle2/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCycle2/received_events","type":"Organization","site_admin":false},"repo":{"id":26902200,"name":"YAML_Transformer","full_name":"CloudCycle2/YAML_Transformer","owner":{"login":"CloudCycle2","id":9609816,"avatar_url":"https://avatars.githubusercontent.com/u/9609816?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudCycle2","html_url":"https://github.com/CloudCycle2","followers_url":"https://api.github.com/users/CloudCycle2/followers","following_url":"https://api.github.com/users/CloudCycle2/following{/other_user}","gists_url":"https://api.github.com/users/CloudCycle2/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudCycle2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudCycle2/subscriptions","organizations_url":"https://api.github.com/users/CloudCycle2/orgs","repos_url":"https://api.github.com/users/CloudCycle2/repos","events_url":"https://api.github.com/users/CloudCycle2/events{/privacy}","received_events_url":"https://api.github.com/users/CloudCycle2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudCycle2/YAML_Transformer","description":"Repository of the YAML transformer","fork":false,"url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer","forks_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/forks","keys_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/teams","hooks_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/hooks","issue_events_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/issues/events{/number}","events_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/events","assignees_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/assignees{/user}","branches_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/branches{/branch}","tags_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/tags","blobs_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/languages","stargazers_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/stargazers","contributors_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/contributors","subscribers_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/subscribers","subscription_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/subscription","commits_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/contents/{+path}","compare_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/merges","archive_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/downloads","issues_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/issues{/number}","pulls_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/labels{/name}","releases_url":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/releases{/id}","created_at":"2014-11-20T08:07:03Z","updated_at":"2015-03-03T16:42:37Z","pushed_at":"2015-03-03T16:42:37Z","git_url":"git://github.com/CloudCycle2/YAML_Transformer.git","ssh_url":"git@github.com:CloudCycle2/YAML_Transformer.git","clone_url":"https://github.com/CloudCycle2/YAML_Transformer.git","svn_url":"https://github.com/CloudCycle2/YAML_Transformer","homepage":null,"size":35491,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":19,"forks":5,"open_issues":19,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/93"},"html":{"href":"https://github.com/CloudCycle2/YAML_Transformer/pull/93"},"issue":{"href":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/issues/93"},"comments":{"href":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/CloudCycle2/YAML_Transformer/statuses/cd26dde8ef0b8f9d741d361870db7c238dbc1dab"}}}}