Skip to content

[html2] curl example always show apiKey. #3560

@adonishi

Description

@adonishi
Description

in html2 ( htmlDoc2 ), there is 'curl' example. and it always shows 'apiKey' & 'apiSecret' header parameter.

curl -X GET -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]"  ...
Command line used for generation
swagger-codegen generate -l html2 -c config.json -i api.yaml -o html-docs/
Steps to reproduce

just generate html2. it always there.

Related issues

#3447

Suggest a Fix

wrap by {{#apiKey}}. see PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions