{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1544","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1544/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1544/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1544/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1544","id":115996725,"number":1544,"title":"Codegen Not Correctly Generating Response Object","user":{"login":"jjkirby","id":1139859,"avatar_url":"https://avatars.githubusercontent.com/u/1139859?v=3","gravatar_id":"","url":"https://api.github.com/users/jjkirby","html_url":"https://github.com/jjkirby","followers_url":"https://api.github.com/users/jjkirby/followers","following_url":"https://api.github.com/users/jjkirby/following{/other_user}","gists_url":"https://api.github.com/users/jjkirby/gists{/gist_id}","starred_url":"https://api.github.com/users/jjkirby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjkirby/subscriptions","organizations_url":"https://api.github.com/users/jjkirby/orgs","repos_url":"https://api.github.com/users/jjkirby/repos","events_url":"https://api.github.com/users/jjkirby/events{/privacy}","received_events_url":"https://api.github.com/users/jjkirby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/P3","name":"P3","color":"bfd4f2"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Workaround%20available","name":"Workaround available","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-10T00:10:38Z","updated_at":"2015-11-13T02:00:49Z","closed_at":"2015-11-13T02:00:49Z","body":"I am trying to separate (different files) my API definitions from the Response Object so I can get Response Object reuse.  My Response Object schema is a $ref to an http based uri on a different server.\r\nThe editor handles the external reference nicely with no errors and displays the correct API documentation.  When I run the codegen (java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -c ./config.json -i catalog.json -l jaxrs -v) I get a warning:\r\n\r\nreading from catalog.json\r\n[main] WARN io.swagger.util.PropertyDeserializer - no property from null, null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=null, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}}\r\n\r\nNo other errors/warnings\r\n\r\nIt looks like the codegen can't reference the schema $ref correctly so it creates this InlineResponse200.java instead of a Container.java for model\r\n\r\nMy input file (catalog.json) looks like this:\r\n\r\n{\r\n    \"swagger\": \"2.0\",\r\n    \"info\": {\r\n        \"title\": \"Catalog API\",\r\n        \"description\": \"APIs for Catalogs\",\r\n        \"version\": \"1.0.0\"\r\n    },\r\n    \"basePath\": \"/cloud\",\r\n    \"schemes\": [\r\n        \"https\"\r\n    ],\r\n    \"paths\": {\r\n        \"/catalog\": {\r\n            \"get\": {\r\n                \"summary\": \"Catalog Types\",\r\n                \"description\": \"Gets All `Catalog` objects.\\nRequires both authorization and vCloud tokens\\n\",\r\n                \"produces\": [\r\n                    \"application/json\",\r\n                    \"application/xml\"\r\n                ],\r\n                \"parameters\": [\r\n                    {\r\n                        \"name\": \"Authorization\",\r\n                        \"description\": \"Authorization token\",\r\n                        \"required\": true,\r\n                        \"in\": \"header\",\r\n                        \"type\": \"string\"\r\n                    },\r\n                    {\r\n                        \"name\": \"X-Vcloud-Org\",\r\n                        \"in\": \"header\",\r\n                        \"description\": \"vCloud token\",\r\n                        \"required\": true,\r\n                        \"type\": \"string\"\r\n                    }\r\n                ],\r\n                \"tags\": [\r\n                    \"Catalogs\"\r\n                ],\r\n                \"responses\": {\r\n                    \"200\": {\r\n                        \"description\": \"Successful response\",\r\n                        \"schema\": {\r\n                            \"properties\": {\r\n                                \"$ref\": \"http://81371-jk01.viawest.corp/container.json\"\r\n                            }\r\n                        }\r\n                    },\r\n                    \"401\": {\r\n                        \"description\": \"Unauthorized\"\r\n                    },\r\n                    \"403\": {\r\n                        \"description\": \"Forbidden\"\r\n                    },\r\n                    \"404\": {\r\n                        \"description\": \"Not Found\"\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\nThe contents of   \"$ref\": \"http://81371-jk01.viawest.corp/container.json\" is this:\r\n\r\n{\r\n  \"Container\": {\r\n    \"type\": \"object\",\r\n    \"properties\": {\r\n      \"description\": {\r\n        \"type\": \"string\"\r\n      },\r\n      \"any\": {\r\n        \"type\": \"array\"\r\n      },\r\n      \"totalRecords\": {\r\n        \"type\": \"integer\"\r\n      },\r\n      \"recordsPerPage\": {\r\n        \"type\": \"integer\"\r\n      },\r\n      \"pageNumber\": {\r\n        \"type\": \"integer\"\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nWhat am I doing wrong?\r\n "}}