title: requestParameters returning "Invalid mapping expression specified: true"
body: <p>I'm configuring a lambda function's API gateway integration with the <a href="https://github.com/serverless/serverless" rel="nofollow noreferrer" title="Serverless Framework">Serverless Framework</a> version 0.4.2.</p>
  <p>My problem is with defining an endpoint's request parameters. The <a href="http://docs.aws.amazon.com/apigateway/api-reference/resource/method/" rel="nofollow noreferrer">AWS docs for API gateway</a> entry says:</p>
  <blockquote>
  <p><strong>requestParameters</strong></p>
  <p>Represents request parameters that can be accepted by Amazon API Gateway. Request parameters are represented as a key/value map, with a source as the key and a Boolean flag as the value. The Boolean flag is used to specify whether the parameter is required. A source must match the pattern method.request.{location}.{name}, where location is either querystring, path, or header. name is a valid, unique parameter name. Sources specified here are available to the integration for mapping to integration request parameters or templates.</p>
  </blockquote>
  <p>As I understand it, the config in the <code>s-function.json</code> is given directly to the AWS CLI, so I've specified the request parameters in the format:
  <code>&quot;method.request.querystring.startYear&quot;: true</code>. However, I'm receiving an <code>Invalid mapping expression specified: true</code> error. I've also tried specifying the config as <code>&quot;method.request.querystring.startYear&quot;: &quot;true&quot;</code> with the same result.</p>
  <p><code>s-function.json</code>:</p>
  <pre><code>{
      &quot;name&quot;: &quot;myname&quot;,
      // etc...
      &quot;endpoints&quot;: [
          {
              &quot;path&quot;: &quot;mypath&quot;,
              &quot;method&quot;: &quot;GET&quot;,
              &quot;type&quot;: &quot;AWS&quot;,
              &quot;authorizationType&quot;: &quot;none&quot;,
              &quot;apiKeyRequired&quot;: false,
              &quot;requestParameters&quot;: {
                  &quot;method.request.querystring.startYear&quot;: true,
                  &quot;method.request.querystring.startMonth&quot;: true,
                  &quot;method.request.querystring.startDay&quot;: true,
                  &quot;method.request.querystring.currentYear&quot;: true,
                  &quot;method.request.querystring.currentMonth&quot;: true,
                  &quot;method.request.querystring.currentDay&quot;: true,
                  &quot;method.request.querystring.totalDays&quot;: true,
                  &quot;method.request.querystring.volume&quot;: true,
                  &quot;method.request.querystring.userId&quot;: true
              },
              // etc...
          }
      ],
      &quot;events&quot;: []
  }
  </code></pre>
  <p>Any ideas? Thanks in advance!</p>