def binary_media_types
      types = Jets.config.api.binary_media_types
      return nil if types.nil? || types.empty?

      [types].flatten
    end
def binary_media_types
      types = Jets.config.api.binary_media_types
      return nil if types.nil? || types.empty?

      [types].flatten
    end
TODO: Looks like there's a bug with CloudFormation. On an API Gateway update
 we need to pass in the escaped version: multipart~1form-data
 On a brand new API Gateway creation, we need to pass in the unescaped form:
 multipart/form-data
 We are handling this with a full API Gateway replacement instead because it
 can be generalized more easily.