Search code examples
swaggeropenapiswagger-2.0swagger-editor

Does Swagger 2.0 support matrix parameters?


Does Swagger 2.0 support matrix parameters of JAX-RS specification?

JAX-RS specification have Matrix-Parameter support.

I have some matrix parameter present in my application such as /map/color;lat=50;long=20;scale=32000. I want to derive Swagger for matrix parameters. I use http://editor.swagger.io; but I could not got any help in the editor. Can anyone help me?

Does Swagger 2.0 support matrix parameters?

Other links ralted to matrix param:


Solution

  • Swagger 2.0 spec does not mention anything about JAX-RS Matrix parameter.

    Also looking at the swagger-jaxrs implementation, you can see that @MatrixParam is ignored in the class responsible for scanning JAX-RS parameter annotations.