{"action":"closed","issue":{"url":"https://api.github.com/repos/sdaschner/jaxrs-analyzer/issues/28","labels_url":"https://api.github.com/repos/sdaschner/jaxrs-analyzer/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/sdaschner/jaxrs-analyzer/issues/28/comments","events_url":"https://api.github.com/repos/sdaschner/jaxrs-analyzer/issues/28/events","html_url":"https://github.com/sdaschner/jaxrs-analyzer/issues/28","id":104566915,"number":28,"title":"Validation errors on generated Swagger JSON","user":{"login":"hmpatel","id":3323086,"avatar_url":"https://avatars.githubusercontent.com/u/3323086?v=3","gravatar_id":"","url":"https://api.github.com/users/hmpatel","html_url":"https://github.com/hmpatel","followers_url":"https://api.github.com/users/hmpatel/followers","following_url":"https://api.github.com/users/hmpatel/following{/other_user}","gists_url":"https://api.github.com/users/hmpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/hmpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmpatel/subscriptions","organizations_url":"https://api.github.com/users/hmpatel/orgs","repos_url":"https://api.github.com/users/hmpatel/repos","events_url":"https://api.github.com/users/hmpatel/events{/privacy}","received_events_url":"https://api.github.com/users/hmpatel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T20:41:23Z","updated_at":"2015-09-04T06:13:12Z","closed_at":"2015-09-04T06:13:12Z","body":"I generated following swagger json from my sample project, however on loading this up on Swagger online editor, it gives following validation errors. Is this a specification mismatch issue or something? \r\n\r\nSwagger JSON:\r\n{\r\n    \"basePath\": \"/\",\r\n    \"definitions\": {\r\n        \"definition#1\": {\r\n            \"properties\": {\r\n                \"cause\": {\r\n                    \"type\": \"string\"\r\n                },\r\n                \"error\": {\r\n                    \"type\": \"string\"\r\n                },\r\n                \"errorCode\": {\r\n                    \"type\": \"string\"\r\n                }\r\n            }\r\n        },\r\n        \"definition#2\": {\r\n            \"properties\": {\r\n                \"cause\": {\r\n                    \"type\": \"string\"\r\n                },\r\n                \"error\": {\r\n                    \"type\": \"string\"\r\n                },\r\n                \"errorCode\": {\r\n                    \"type\": \"string\"\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"host\": \"example.com\",\r\n    \"info\": {\r\n        \"title\": \"sample-service\",\r\n        \"version\": \"1.0.0-SNAPSHOT\"\r\n    },\r\n    \"paths\": {\r\n        \"/api/health\": {\r\n            \"get\": {\r\n                \"consumes\": [],\r\n                \"parameters\": [],\r\n                \"produces\": [\r\n                    \"application/json\"\r\n                ],\r\n                \"responses\": {\r\n                    \"200\": {\r\n                        \"description\": \"OK\",\r\n                        \"headers\": {}\r\n                    }\r\n                }\r\n            }\r\n        },\r\n        \"/api/v1/`resourceA`\": {\r\n            \"post\": {\r\n                \"consumes\": [\r\n                    \"application/json\"\r\n                ],\r\n                \"parameters\": [\r\n                    {\r\n                        \"in\": \"header\",\r\n                        \"name\": \"X-Interface-Name\",\r\n                        \"required\": true,\r\n                        \"type\": \"string\"\r\n                    },\r\n                    {\r\n                        \"in\": \"header\",\r\n                        \"name\": \"X-ABC-Client-App-ID\",\r\n                        \"required\": true,\r\n                        \"type\": \"string\"\r\n                    },\r\n                    {\r\n                        \"in\": \"body\",\r\n                        \"name\": \"body\",\r\n                        \"required\": true,\r\n                        \"schema\": {\r\n                            \"type\": \"string\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"produces\": [],\r\n                \"responses\": {\r\n                    \"204\": {\r\n                        \"description\": \"No Content\",\r\n                        \"headers\": {}\r\n                    },\r\n                    \"400\": {\r\n                        \"description\": \"Bad Request\",\r\n                        \"headers\": {},\r\n                        \"schema\": {\r\n                            \"$ref\": \"definition#1\"\r\n                        }\r\n                    },\r\n                    \"500\": {\r\n                        \"description\": \"Internal Server Error\",\r\n                        \"headers\": {},\r\n                        \"schema\": {\r\n                            \"$ref\": \"definition#2\"\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"schemas\": [\r\n        \"http\"\r\n    ],\r\n    \"swagger\": \"2.0\"\r\n}\r\n\r\n\r\nValidation Errors\r\n\r\n✖ Swagger Error\r\nAdditional properties not allowed: schemas\r\nDetails\r\n Object\r\ncode:  \"OBJECT_ADDITIONAL_PROPERTIES\"\r\nmessage:  \"Additional properties not allowed: schemas\"\r\n path: Array [0]\r\nlevel: 900"}}