{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/879","repository_url":"https://api.github.com/repos/swagger-api/swagger-editor","labels_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/879/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/879/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/879/events","html_url":"https://github.com/swagger-api/swagger-editor/issues/879","id":150061584,"number":879,"title":"Example code doesn't work with swagger-codegen","user":{"login":"tylerlong","id":733544,"avatar_url":"https://avatars.githubusercontent.com/u/733544?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerlong","html_url":"https://github.com/tylerlong","followers_url":"https://api.github.com/users/tylerlong/followers","following_url":"https://api.github.com/users/tylerlong/following{/other_user}","gists_url":"https://api.github.com/users/tylerlong/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerlong/subscriptions","organizations_url":"https://api.github.com/users/tylerlong/orgs","repos_url":"https://api.github.com/users/tylerlong/repos","events_url":"https://api.github.com/users/tylerlong/events{/privacy}","received_events_url":"https://api.github.com/users/tylerlong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-21T12:36:42Z","updated_at":"2016-04-22T01:50:43Z","closed_at":null,"body":"Go to http://editor.swagger.io/\r\n\r\nMenu --> File --> Open examples --> twitter.yaml\r\n\r\nMenu --> File --> Download YAML, the file was saved as swagger.yaml\r\n\r\n```\r\nwget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.1.6/swagger-codegen-cli-2.1.6.jar -O swagger-codegen-cli.jar\r\n\r\njava -jar swagger-codegen-cli.jar generate -i swagger.yaml -l csharp -o /tmp/test\r\n```\r\n\r\nError message:\r\n\r\n```\r\nLMXMN061:Downloads tyler.liu$ java -jar swagger-codegen-cli.jar generate -i swagger.yaml -l csharp -o /tmp/test\r\n[main] INFO io.swagger.parser.Swagger20Parser - reading from swagger.yaml\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\nException in thread \"main\" java.lang.RuntimeException: Could not process model 'inline_response_200_3'\r\n\tat io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:244)\r\n\tat io.swagger.codegen.cmd.Generate.run(Generate.java:223)\r\n\tat io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:36)\r\nCaused by: java.lang.NullPointerException\r\n\tat io.swagger.codegen.languages.AbstractCSharpCodegen.getSwaggerType(AbstractCSharpCodegen.java:459)\r\n\tat io.swagger.codegen.DefaultCodegen.getTypeDeclaration(DefaultCodegen.java:862)\r\n\tat io.swagger.codegen.languages.AbstractCSharpCodegen.getTypeDeclaration(AbstractCSharpCodegen.java:482)\r\n\tat io.swagger.codegen.languages.AbstractCSharpCodegen.getTypeDeclaration(AbstractCSharpCodegen.java:475)\r\n\tat io.swagger.codegen.DefaultCodegen.fromProperty(DefaultCodegen.java:1247)\r\n\tat io.swagger.codegen.DefaultCodegen.addVars(DefaultCodegen.java:2232)\r\n\tat io.swagger.codegen.DefaultCodegen.addVars(DefaultCodegen.java:2206)\r\n\tat io.swagger.codegen.DefaultCodegen.addVars(DefaultCodegen.java:2193)\r\n\tat io.swagger.codegen.DefaultCodegen.fromModel(DefaultCodegen.java:1013)\r\n\tat io.swagger.codegen.languages.CSharpClientCodegen.fromModel(CSharpClientCodegen.java:273)\r\n\tat io.swagger.codegen.DefaultGenerator.processModels(DefaultGenerator.java:799)\r\n\tat io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:237)\r\n\t... 2 more\r\n```\r\n\r\nThe issue is either about swagger-codegen or example of swagger-editor."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/comments/213207839","html_url":"https://github.com/swagger-api/swagger-editor/issues/879#issuecomment-213207839","issue_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/879","id":213207839,"user":{"login":"tylerlong","id":733544,"avatar_url":"https://avatars.githubusercontent.com/u/733544?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerlong","html_url":"https://github.com/tylerlong","followers_url":"https://api.github.com/users/tylerlong/followers","following_url":"https://api.github.com/users/tylerlong/following{/other_user}","gists_url":"https://api.github.com/users/tylerlong/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerlong/subscriptions","organizations_url":"https://api.github.com/users/tylerlong/orgs","repos_url":"https://api.github.com/users/tylerlong/repos","events_url":"https://api.github.com/users/tylerlong/events{/privacy}","received_events_url":"https://api.github.com/users/tylerlong/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T01:50:43Z","updated_at":"2016-04-22T01:50:43Z","body":"@saharj yes, I tested several yesterday. instagram.yaml has this issue too. Actually I was unable to get any of the examples working."}}