title: AWS API Gateway fails to import Swagger definition: Unsupported model type 'MapProperty'
body: <p>I am currently on this screen trying to import my app's swagger definition so I can create an API Gateway instance.</p>
  <p><a href="https://i.stack.imgur.com/HQCNQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HQCNQ.png" alt="enter image description here" /></a></p>
  <p>Unfortunately, you can see I'm getting some errors - even though swagger seems to think it's entirely fine.</p>
  <pre><code>Your API was not imported due to errors in the Swagger file.
  Unable to create model for 200 response to method 'GET /api/v1/courses': Validation Result: warnings : [], errors : [Invalid content type specified: */*]
  Unsupported model type 'MapProperty' in 200 response to method 'GET /api/v1/courses/all'. Ignoring.
  </code></pre>
  <p><a href="https://i.stack.imgur.com/MrRAi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MrRAi.png" alt="enter image description here" /></a></p>
  <p>Here is my swagger definition:</p>
  <pre><code>{
      &quot;swagger&quot;: &quot;2.0&quot;,
      &quot;info&quot;: {
          &quot;description&quot;: &quot;Api Documentation&quot;,
          &quot;version&quot;: &quot;1.0&quot;,
          &quot;title&quot;: &quot;Api Documentation&quot;,
          &quot;termsOfService&quot;: &quot;urn:tos&quot;,
          &quot;contact&quot;: {},
          &quot;license&quot;: {
              &quot;name&quot;: &quot;Apache 2.0&quot;,
              &quot;url&quot;: &quot;http://www.apache.org/licenses/LICENSE-2.0&quot;
          }
      },
      &quot;host&quot;: &quot;********.appspot.com&quot;,
      &quot;basePath&quot;: &quot;/&quot;,
      &quot;tags&quot;: [{
          &quot;name&quot;: &quot;course-controller&quot;,
          &quot;description&quot;: &quot;Course Controller&quot;
      }],
      &quot;paths&quot;: {
          &quot;/api/v1/courses&quot;: {
              &quot;get&quot;: {
                  &quot;tags&quot;: [&quot;course-controller&quot;],
                  &quot;summary&quot;: &quot;getCourses&quot;,
                  &quot;operationId&quot;: &quot;getCoursesUsingGET&quot;,
                  &quot;produces&quot;: [&quot;*/*&quot;],
                  &quot;parameters&quot;: [{
                      &quot;name&quot;: &quot;code&quot;,
                      &quot;in&quot;: &quot;query&quot;,
                      &quot;description&quot;: &quot;code&quot;,
                      &quot;required&quot;: false,
                      &quot;type&quot;: &quot;string&quot;
                  }],
                  &quot;responses&quot;: {
                      &quot;200&quot;: {
                          &quot;description&quot;: &quot;OK&quot;,
                          &quot;schema&quot;: {
                              &quot;type&quot;: &quot;array&quot;,
                              &quot;items&quot;: {
                                  &quot;$ref&quot;: &quot;#/definitions/Course&quot;
                              }
                          }
                      },
                      &quot;401&quot;: {
                          &quot;description&quot;: &quot;Unauthorized&quot;
                      },
                      &quot;403&quot;: {
                          &quot;description&quot;: &quot;Forbidden&quot;
                      },
                      &quot;404&quot;: {
                          &quot;description&quot;: &quot;Not Found&quot;
                      }
                  },
                  &quot;deprecated&quot;: false
              }
          },
          &quot;/api/v1/courses/all&quot;: {
              &quot;get&quot;: {
                  &quot;tags&quot;: [&quot;course-controller&quot;],
                  &quot;summary&quot;: &quot;getAllCourses&quot;,
                  &quot;operationId&quot;: &quot;getAllCoursesUsingGET&quot;,
                  &quot;produces&quot;: [&quot;*/*&quot;],
                  &quot;responses&quot;: {
                      &quot;200&quot;: {
                          &quot;description&quot;: &quot;OK&quot;,
                          &quot;schema&quot;: {
                              &quot;type&quot;: &quot;object&quot;,
                              &quot;additionalProperties&quot;: {
                                  &quot;type&quot;: &quot;object&quot;
                              }
                          }
                      },
                      &quot;401&quot;: {
                          &quot;description&quot;: &quot;Unauthorized&quot;
                      },
                      &quot;403&quot;: {
                          &quot;description&quot;: &quot;Forbidden&quot;
                      },
                      &quot;404&quot;: {
                          &quot;description&quot;: &quot;Not Found&quot;
                      }
                  },
                  &quot;deprecated&quot;: false
              }
          }
      },
      &quot;definitions&quot;: {
          &quot;Course&quot;: {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;code&quot;: {
                      &quot;type&quot;: &quot;string&quot;
                  },
                  &quot;credits&quot;: {
                      &quot;type&quot;: &quot;integer&quot;,
                      &quot;format&quot;: &quot;int32&quot;
                  },
                  &quot;id&quot;: {
                      &quot;type&quot;: &quot;integer&quot;,
                      &quot;format&quot;: &quot;int32&quot;
                  },
                  &quot;lastUpdated&quot;: {
                      &quot;type&quot;: &quot;string&quot;
                  },
                  &quot;name&quot;: {
                      &quot;type&quot;: &quot;string&quot;
                  },
                  &quot;prerequisites&quot;: {
                      &quot;type&quot;: &quot;string&quot;
                  },
                  &quot;restrictions&quot;: {
                      &quot;type&quot;: &quot;string&quot;
                  },
                  &quot;seats&quot;: {
                      &quot;$ref&quot;: &quot;#/definitions/Seats&quot;
                  },
                  &quot;waitlist&quot;: {
                      &quot;$ref&quot;: &quot;#/definitions/Seats&quot;
                  }
              },
              &quot;title&quot;: &quot;Course&quot;
          },
          &quot;Seats&quot;: {
              &quot;type&quot;: &quot;object&quot;,
              &quot;properties&quot;: {
                  &quot;actual&quot;: {
                      &quot;type&quot;: &quot;integer&quot;,
                      &quot;format&quot;: &quot;int32&quot;
                  },
                  &quot;capacity&quot;: {
                      &quot;type&quot;: &quot;integer&quot;,
                      &quot;format&quot;: &quot;int32&quot;
                  },
                  &quot;remaining&quot;: {
                      &quot;type&quot;: &quot;integer&quot;,
                      &quot;format&quot;: &quot;int32&quot;
                  }
              },
              &quot;title&quot;: &quot;Seats&quot;
          }
      }
  }
  </code></pre>
  <p>Is there any reason you can find for this swagger definition breaking in API Gateway?</p>