swagger-api / swagger-api/swagger-codegen

undefined response schema of type array in swagger genarated html2 doc

Open
#9,392 3 comments 1 reaction 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

Whenever i am try to generate a html2 doc using swagger codegen. In the generated html2 doc i have some schema which are of type "array" is being shown as undefined. i see in the latest release 3.0.7 for codegen there is a similar issue which is said to be resolved. but i dont think its been fixed yet. i still have the same issue when i am using codgen 3.0.7

Swagger-codegen version

3.0.7

Swagger declaration file content or url
Command line used for generation
Steps to reproduce
  1. Go to https://editor.swagger.io/
  2. Generate html2 document in Generate client
  3. In the html2 doc we are missing some schema objects which are undefined
Related issues/PRs

https://github.com/swagger-api/swagger-codegen/issues/7714

Suggest a fix/enhancement

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

Start by reproducing the issue in https://editor.swagger.io/ with Swagger Codegen 3.0.7 and inspect the generated html2 document; no declaration file or command is provided in this report. Review related issue #7714 for context, and consider the issue done when array-type schemas render with their definitions instead of undefined.

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.