title: Spring boot and springfox-swagger2 - $ref values must be RFC3986-compliant percent-encoded URIs - Solution provided
body: <p>If you’re using the springfox-swagger2 library, you might come across a problem when it comes to generic types. In cases where diamond brackets are used, Swagger will generate an invalid specification, resulting in a validation error in the Swagger Editor (“”$ref values must be RFC3986-compliant percent-encoded URIs”).</p>
  <p>The error you get might look like this:</p>
  <blockquote>
  <p>Semantic error at paths./v1/car.post.parameters.0.schema.$ref
  $ref values must be RFC3986-compliant percent-encoded URIs
  Jump to line 45</p>
  </blockquote>