I generated JMeter (JMX) for different APIs and I got it to work, though a few issues and caveats.
First it generates
- User Defined Variables to substitute in Host, Port, testCases, csvFileName
- a JMX per API
- a Thread Group per Method (POST, GET, .. )
- a HTTP Header Manager per thread group, blank but useful to be in there.
- HTTP Sampler for each request
- Loading of CSV Data for filling parameter values
- HTTP Status Assertion which is validated on error code defined in CSV file
Caveats and Issues
- It does not keep your host from config, it replaces with local host. You must change it or pass it in via command line
- It uses a default port of 8080, this caused me some grief as well.
The loop count is controlled by variable, testCases. However there is a bug in swagger-code-gen template for JMeter if you want to pass this in via the command line
- testCases variable has a bug in the template it defines testCases as ${__P(host,10)} but it should be ${__P(testCases,10)}

GET Parameters are fill with 0 instead of ${variable_name}, this is from the template in swagger codegen. I have a fix in my fork that I have tested. The other option is just to fix it in the JMX file
Original
And after editing Parameters

Example Swagger that works
The following is the Swagger file I used (modified from echo) and the generated (with modification for Parameters) JMX. I have tested this JMX using RedLine13 Example Test and passing the parameters as required. Passing in parameters
-JtestCases=50
-Jhost=mazimi-prod.apigee.net
-Jport=80
And here is the example Yaml
---
swagger: '2.0'
info:
version: 1.0.0
title: Echo
description: |
#### Echos back every URL, method, parameter and header
Feel free to make a path or an operation and use **Try Operation** to test it. The echo server will
render back everything.
schemes:
- http
host: mazimi-prod.apigee.net
basePath: /echo
paths:
/{id}:
get:
parameters:
- name: id
in: path
description: ID
type: string
required: true
- name: user
in: query
description: name
type: string
required: true
- name: location
in: query
description: location
type: string
required: true
responses:
200:
description: Echo GET
Updated JMEter template in Swagger CodeGen
Since there are a few issues for making this work seamless within SwaggerCode Gen i created an issue and pull request. If you need to use it sooner the fork is over here https://github.com/richardfriedman/swagger-codegen/commit/5aff601eaccf67ec44bb681816d40a25e5aa20a3