OpenAPITools / OpenAPITools/openapi-generator

[REQ] Generate JSON schema form OpenAPI docs

Open
#21,406 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Is your feature request related to a problem? Please describe.

I have to test an API, and right now I would need to test whether the response is conform to the appropriate JSON schema. Now I do not have JSON schemas, so I generate them using several tools in a chain.
But it would be good to have one tool which generates them - from the responses

Describe the solution you'd like

For example the models folder (I use Python, but other languages should have these schemas too, just in folder specific to given language) should contain the JSON schemas of the responses, as they are some kind of models.

Additional context

Note: When there was some some issue in OpenAPI spec, the generator left (did not delete) some JSON schema file, I do not know what state had it, was it good or not

BR,
George

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 request centers on the generator, the models folder, and the OpenAPI spec; start by tracing how response models are produced for a selected language. Define completion as generating response JSON schemas in each language-specific models folder and handling stale schema files when the spec is invalid.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.