We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Openapi-generator can't generate generate security definitions like api key.
master branch at a4f1d1b
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml
When I execute bellow command to generate jemeter files,
git clone https://github.com/OpenAPITools/openapi-generator mvn install -Dmaven.test.skip=true ./bin/generate-samples.sh bin/configs/other/jmeter.yaml
jmeter fiels don't have api key in headers.
actual output
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group - getPetById" enabled="true"> ... <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true"> <collectionProp name="HeaderManager.headers"> </collectionProp> </HeaderManager>
expected output
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group - getPetById" enabled="true"> ... <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true"> <collectionProp name="HeaderManager.headers"> <elementProp name="" elementType="Header"> <stringProp name="Header.name">api_key</stringProp> <stringProp name="Header.value">${__P(apiKey,key)}</stringProp> </elementProp> </collectionProp> </HeaderManager>
see "Generation Details"
nothing
change https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/jmeter-client/api.mustache
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug Report Checklist
Description
Openapi-generator can't generate generate security definitions like api key.
openapi-generator version
master branch at a4f1d1b
OpenAPI declaration file content or url
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml
Generation Details
When I execute bellow command to generate jemeter files,
jmeter fiels don't have api key in headers.
actual output
expected output
Steps to reproduce
see "Generation Details"
Related issues/PRs
nothing
Suggest a fix
change https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/jmeter-client/api.mustache
The text was updated successfully, but these errors were encountered: