swagger-api / swagger-api/swagger-codegen

Request headers not displaying correctly in html generated documentation

Open
#12,209 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I'm using Swagger Hub to generate html documentation. The generated html does not display request headers correctly. I looked at similar issues on github but the problem has not been resolved.

Swagger-codegen version

3.0

Swagger declaration file content or url
paths:
  /ping:
    get:
      summary: Checks if the server is alive
      parameters:
        - in: header
          name: userId
          schema:
            type: integer
          required: true
          description: Numeric ID of the user to get
Related issues/PRs

image

requestheaderhtml

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the generated HTML documentation from the supplied OpenAPI paths example, focusing on the GET /ping operation and its required userId header. Compare the rendered request-header section with the attached screenshots and verify that the header is displayed correctly in the generated documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.