title: Swagger validation sensitivity when using boto
body: <p>So I can use aws cli to import an API using its swagger yml file and it works after a bit of sensitivity, but then the same file fails when I try to do it using boto3</p>
  
  <p>The code looks like this</p>
  
  <pre><code>client.import_rest_api(
    failOnWarnings=False, 
    parameters={}, 
    body="file://C:/somewhereinmyfilesystem/myvalidswagger.yml")
  </code></pre>
  
  <p>all the code is on the same line, I just broke it over to show on here.</p>
  
  <p>Any ideas what's wrong with the command? The file works fine direct from the cli, and the error I get back when I run the python file is consistent.</p>
  
  <p>Is "Invalid Swagger 2.0 input," the new "Object reference not set to an instance of an object"? Thanks for any help :-)</p>