swagger-api / swagger-api/swagger-parser

Need help parsing and getting Request Response Schema

Open
#731 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
867
Forks
560
Avg merge
2d 21h
Merged PRs (30d)
7

Description

I need to Parse Swagger in Java to get list of all api and the respective Request Response.
I am able to get all the api's present but unable to get valid Request Response.

I tried to generate the same using swagger.getDefinitions() From the models, but its not correct and doesn't work for the Array structures within the payload.

I heard Swagger Codegen might be appropriate for getting schema but couldn't find any examples to do so.

Is there a way in which I can get the Payloads too ?

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

The issue names Swagger parsing in Java, swagger.getDefinitions(), and Swagger Codegen as possible entry points; no files or tests are identified. First clarify the required request and response payload shapes, especially arrays, then determine what supported API can expose them. Done would require a documented, working way to retrieve those schemas.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.