title: Need serializer to serialize hyphens instead of underscores on get request
body: <p>I am working on a project that is using a RestAPI. There are <code>@SWG\Parameter</code>s, which need to by hyphenated in the getter, but underscored for the serializer.</p>
  
  <p>The issue I'm having is that these are used for a GET request. Due to get requests being in the URL, we want them to be hyphenated (like above, tariff name), so that it follows the conventions that we have elsewhere around the program.</p>
  
  <p>The issue that we are having is that when using serialiser it does not serialize hyphenated fields correctly. I'm sure there is a setting or something I can change, or write a function that replaces them, but I'm not sure where or how I would do this.</p>
  
  <p>Lastly, we only want this in this specific controller, not globally as it would adversely affect other parts of the program.</p>
  
  <pre><code>&gt;@SWG\Parameter(
  &gt;&gt;name="tariff-name",
  &gt;&gt;
  &gt;&gt;in="query",
  </code></pre>