{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7509","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7509/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7509/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7509/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/7509","id":292134195,"node_id":"MDU6SXNzdWUyOTIxMzQxOTU=","number":7509,"title":"[swagger-codegen-3.0.0-rc0] Build and swagger-codegen-cli.jar execution issues","user":{"login":"wol190","id":8318503,"node_id":"MDQ6VXNlcjgzMTg1MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/8318503?v=4","gravatar_id":"","url":"https://api.github.com/users/wol190","html_url":"https://github.com/wol190","followers_url":"https://api.github.com/users/wol190/followers","following_url":"https://api.github.com/users/wol190/following{/other_user}","gists_url":"https://api.github.com/users/wol190/gists{/gist_id}","starred_url":"https://api.github.com/users/wol190/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wol190/subscriptions","organizations_url":"https://api.github.com/users/wol190/orgs","repos_url":"https://api.github.com/users/wol190/repos","events_url":"https://api.github.com/users/wol190/events{/privacy}","received_events_url":"https://api.github.com/users/wol190/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"HugoMario","id":3266608,"node_id":"MDQ6VXNlcjMyNjY2MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/3266608?v=4","gravatar_id":"","url":"https://api.github.com/users/HugoMario","html_url":"https://github.com/HugoMario","followers_url":"https://api.github.com/users/HugoMario/followers","following_url":"https://api.github.com/users/HugoMario/following{/other_user}","gists_url":"https://api.github.com/users/HugoMario/gists{/gist_id}","starred_url":"https://api.github.com/users/HugoMario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HugoMario/subscriptions","organizations_url":"https://api.github.com/users/HugoMario/orgs","repos_url":"https://api.github.com/users/HugoMario/repos","events_url":"https://api.github.com/users/HugoMario/events{/privacy}","received_events_url":"https://api.github.com/users/HugoMario/received_events","type":"User","site_admin":false},"assignees":[{"login":"HugoMario","id":3266608,"node_id":"MDQ6VXNlcjMyNjY2MDg=","avatar_url":"https://avatars1.githubusercontent.com/u/3266608?v=4","gravatar_id":"","url":"https://api.github.com/users/HugoMario","html_url":"https://github.com/HugoMario","followers_url":"https://api.github.com/users/HugoMario/followers","following_url":"https://api.github.com/users/HugoMario/following{/other_user}","gists_url":"https://api.github.com/users/HugoMario/gists{/gist_id}","starred_url":"https://api.github.com/users/HugoMario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HugoMario/subscriptions","organizations_url":"https://api.github.com/users/HugoMario/orgs","repos_url":"https://api.github.com/users/HugoMario/repos","events_url":"https://api.github.com/users/HugoMario/events{/privacy}","received_events_url":"https://api.github.com/users/HugoMario/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/15","html_url":"https://github.com/swagger-api/swagger-codegen/milestone/15","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/15/labels","id":2643496,"node_id":"MDk6TWlsZXN0b25lMjY0MzQ5Ng==","number":15,"title":"v3.0.0","description":"","creator":{"login":"wing328","id":934260,"node_id":"MDQ6VXNlcjkzNDI2MA==","avatar_url":"https://avatars2.githubusercontent.com/u/934260?v=4","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":15,"state":"open","created_at":"2017-07-16T17:15:51Z","updated_at":"2018-05-13T07:26:21Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2018-01-27T16:46:01Z","updated_at":"2018-05-30T22:30:36Z","closed_at":"2018-02-13T06:49:07Z","author_association":"NONE","body":"##### Description\r\nWhen I build swagger-codegen-3.0.0-rc0 using \"mvn clean package\" there are errors and also when I run /swagger-codegen-cli.jar generate\r\n\r\n##### Swagger-codegen version\r\nswagger-codegen-3.0.0-rc0 from https://github.com/swagger-api/swagger-codegen/releases/tag/v3.0.0-rc0\r\n\r\n##### Swagger declaration file content or url: Cutdown Pet.yaml:\r\n```yaml\r\nopenapi: \"3.0.0\"\r\ninfo:\r\n  version: 1.0.0\r\n  title: Swagger Petstore\r\nservers:\r\n  - url: http://127.0.0.1:8080\r\npaths:\r\n  /pets:\r\n    get:\r\n      summary: Return the pet\r\n      operationId: getThePet\r\n      responses:\r\n        '200':\r\n          description: A pet\r\n          content:\r\n            application/json:    \r\n              schema:\r\n                $ref: \"#/components/schemas/Pet\"\r\ncomponents:\r\n  schemas:\r\n    Pet:\r\n      required:\r\n        - id\r\n        - name\r\n      properties:\r\n        id:\r\n          type: integer\r\n          format: int64\r\n        name:\r\n          type: string\r\n      example:\r\n        id: 1\r\n        name: \"Trevor\"\r\n  ```\r\n\r\n##### Command line used for generation\r\njava -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -l java -i ../pet.yaml -o C:/tmp/server/petstore3/java\r\n\r\n##### Build errors (duplicate output lines removed)\r\nmvn clean package\r\n[INFO] Scanning for projects...\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Reactor Build Order:\r\n[INFO]\r\n[INFO] swagger-codegen-project\r\n[INFO] swagger-codegen (core library)\r\n[INFO] swagger-codegen (executable)\r\n[INFO] swagger-codegen (maven-plugin)\r\n[INFO] swagger-generator\r\n[INFO] Building swagger-codegen-project 3.0.0-rc0\r\n[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ swagger-codegen-project ---\r\n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @ swagger-codegen-project ---\r\n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ swagger-codegen-project ---\r\n[INFO] --- maven-surefire-plugin:2.19.1:test (test-testng) @ swagger-codegen-project ---\r\n[INFO] No tests to run.\r\n[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default) @ swagger-codegen-project ---\r\n\r\n...\r\n\r\n[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ swagger-codegen ---\r\n\r\n-------------------------------------------------------\r\n T E S T S\r\nResults :\r\nTests run: 0, Failures: 0, Errors: 0, Skipped: 0\r\n[INFO]\r\n[INFO] --- maven-surefire-plugin:2.19.1:test (test-testng) @ swagger-codegen ---\r\nRunning TestSuite\r\n[main] INFO org.reflections.Reflections - Reflections took 266 ms to scan 2 urls, producing 43 keys and 232 values\r\n[main] INFO org.reflections.Reflections - Reflections took 159 ms to scan 2 urls, producing 43 keys and 232 values\r\n[main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found.\r\n[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId `duplicate_0`\r\n[main] WARN io.swagger.codegen.DefaultCodegen - Empty operationId found for path: get /pet. Renamed to auto-generated operationId: petGet\r\n[main] WARN io.swagger.codegen.ignore.CodegenIgnoreProcessor - Output directory does not exist, or is inaccessible. No file (.swagger-codegen-ignore) will be evaluated.\r\n[main] ERROR io.swagger.codegen.languages.AbstractJavaCodegen - No Type defined for Property Pet\r\n[main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is null. Default to Object\r\n[main] ERROR io.swagger.codegen.languages.AbstractJavaCodegen - No Type defined for Property Order\r\n[main] ERROR io.swagger.codegen.languages.AbstractJavaCodegen - No Type defined for Property User\r\nthe size is: 2\r\n[main] WARN io.swagger.codegen.DefaultCodegen - escapeUnsafeCharacters should be overridden in the code generator with proper logic to escape unsafe characters\r\n[main] WARN io.swagger.codegen.DefaultCodegen - escapeQuotationMark should be overridden in the code generator with proper logic to escape single/double quote\r\nTests run: 45, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 3.382 sec - in TestSuite\r\n\r\n##### Execution errors running swagger-codegen-cli.jar generate\r\njava -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -l java -i ../pet.yaml -o C:/tmp/server/petstore3/java\r\n[Thread-0] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found.\r\n[Thread-0] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is null. Default to Object\r\nException in thread \"Thread-0\" java.lang.RuntimeException: Could not generate model 'Pet'\r\n        at io.swagger.codegen.DefaultGenerator.generateModels(DefaultGenerator.java:407)\r\n        at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:722)\r\n        at io.swagger.codegen.cmd.Generate.run(Generate.java:312)\r\n        at java.base/java.lang.Thread.run(Unknown Source)\r\nCaused by: java.io.FileNotFoundException: /v2/Java/\\model.mustache\r\n        at com.github.jknack.handlebars.io.URLTemplateLoader.sourceAt(URLTemplateLoader.java:70)\r\n        at com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:357)\r\n        at com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:343)\r\n        at io.swagger.codegen.DefaultGenerator.getHandlebars(DefaultGenerator.java:1013)\r\n        at io.swagger.codegen.DefaultGenerator.processTemplateToFile(DefaultGenerator.java:738)\r\n        at io.swagger.codegen.DefaultGenerator.generateModels(DefaultGenerator.java:394)\r\n        ... 3 more"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/393340643","html_url":"https://github.com/swagger-api/swagger-codegen/issues/7509#issuecomment-393340643","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7509","id":393340643,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzM0MDY0Mw==","user":{"login":"Kiolali","id":16179562,"node_id":"MDQ6VXNlcjE2MTc5NTYy","avatar_url":"https://avatars2.githubusercontent.com/u/16179562?v=4","gravatar_id":"","url":"https://api.github.com/users/Kiolali","html_url":"https://github.com/Kiolali","followers_url":"https://api.github.com/users/Kiolali/followers","following_url":"https://api.github.com/users/Kiolali/following{/other_user}","gists_url":"https://api.github.com/users/Kiolali/gists{/gist_id}","starred_url":"https://api.github.com/users/Kiolali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kiolali/subscriptions","organizations_url":"https://api.github.com/users/Kiolali/orgs","repos_url":"https://api.github.com/users/Kiolali/repos","events_url":"https://api.github.com/users/Kiolali/events{/privacy}","received_events_url":"https://api.github.com/users/Kiolali/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T22:30:36Z","updated_at":"2018-05-30T22:30:36Z","author_association":"NONE","body":"I have the same error on Windows 10"}}
{"actor":{"display_login":"Kiolali"}}