I am using Springfox libraries to generate documentation for REST service and display it in Swagger UI. I followed the directions in Springfox documentation.
Springfox
This was caused by the line
enableUrlTemplating(true)
in Docket configuration which I copied from example and forgot to remove.
Docket
After removing this line everything is working as expected.