{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1597","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1597/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1597/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1597/events","html_url":"https://github.com/swagger-api/swagger-core/issues/1597","id":125741431,"number":1597,"title":"MatrixParam mapping not correct (swagger 2.0 ,v1.5.6)","user":{"login":"tangjwtj","id":4137923,"avatar_url":"https://avatars.githubusercontent.com/u/4137923?v=3","gravatar_id":"","url":"https://api.github.com/users/tangjwtj","html_url":"https://github.com/tangjwtj","followers_url":"https://api.github.com/users/tangjwtj/followers","following_url":"https://api.github.com/users/tangjwtj/following{/other_user}","gists_url":"https://api.github.com/users/tangjwtj/gists{/gist_id}","starred_url":"https://api.github.com/users/tangjwtj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangjwtj/subscriptions","organizations_url":"https://api.github.com/users/tangjwtj/orgs","repos_url":"https://api.github.com/users/tangjwtj/repos","events_url":"https://api.github.com/users/tangjwtj/events{/privacy}","received_events_url":"https://api.github.com/users/tangjwtj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-09T06:19:04Z","updated_at":"2016-01-11T22:29:40Z","closed_at":"2016-01-11T22:29:40Z","body":"When use swagger 2.0 V1.5.6 (use swagger 1.0 v1.3.8 the result is correct) , MatrixParam mapping not correct , in swagger.json ,MatrixParam should be mapped into a matrix actually mapped into a body.\r\n\r\nFor example ,I define an interface like below:\r\n\r\n```java\r\n@GET\r\n\t@Path(\"/{id}\")\r\n\t@Produces({ MediaType.APPLICATION_JSON })\r\n\t@ApiOperation(value = \" \")\r\n\tpublic void getByid(@PathParam(\"id\") int tagsId,\r\n\t\t\t@ApiParam(value = \"serviceName\") @DefaultValue(\"run_time\") @MatrixParam(\"sortField\") String sortField) {\r\n\r\n\t}\r\n```\r\nthe swagger 2.0 mapping result is :\r\n```json\r\n{\r\n  \"get\": {\r\n    \"tags\": [\r\n      \"TagsServer\"\r\n    ],\r\n    \"summary\": \" \",\r\n    \"description\": \"\",\r\n    \"operationId\": \"getByid\",\r\n    \"produces\": [\r\n      \"application/json\"\r\n    ],\r\n    \"parameters\": [\r\n      {\r\n        \"name\": \"id\",\r\n        \"in\": \"path\",\r\n        \"required\": true,\r\n        \"type\": \"integer\",\r\n        \"format\": \"int32\"\r\n      },\r\n      {\r\n        \"in\": \"body\",\r\n        \"name\": \"body\",\r\n        \"description\": \"serviceName\",\r\n        \"required\": false,\r\n        \"schema\": {\r\n          \"type\": \"string\",\r\n          \"default\": \"run_time\"\r\n        }\r\n      }\r\n    ],\r\n    \"responses\": {\r\n      \"default\": {\r\n        \"description\": \"successful operation\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\nMatrixParam's name and type not correct."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/comments/170711887","html_url":"https://github.com/swagger-api/swagger-core/issues/1597#issuecomment-170711887","issue_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1597","id":170711887,"user":{"login":"webron","id":241629,"avatar_url":"https://avatars.githubusercontent.com/u/241629?v=3","gravatar_id":"","url":"https://api.github.com/users/webron","html_url":"https://github.com/webron","followers_url":"https://api.github.com/users/webron/followers","following_url":"https://api.github.com/users/webron/following{/other_user}","gists_url":"https://api.github.com/users/webron/gists{/gist_id}","starred_url":"https://api.github.com/users/webron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webron/subscriptions","organizations_url":"https://api.github.com/users/webron/orgs","repos_url":"https://api.github.com/users/webron/repos","events_url":"https://api.github.com/users/webron/events{/privacy}","received_events_url":"https://api.github.com/users/webron/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T22:29:40Z","updated_at":"2016-01-11T22:29:40Z","body":"The spec itself doesn't support matrix params and swagger-core follows the spec. Please see https://github.com/OAI/OpenAPI-Specification/issues/69."}}