OpenAPITools / OpenAPITools/openapi-generator

[REQ] JSON Schema model generation

Open
#13,287 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

With OpenAPI 3.1 unifying it's schema support with JSON schema (https://spec.openapis.org/oas/v3.1.0#schema-object) this project is going to have to support all of JSON schema for OpenAPI compliance. Given that could we also use this project as a code generator for JSON schema files, i.e. no endpoint/api/client files, just the models. I'd imagine most of the model code would be common for schemas within an OpenAPI file, and those just in a JSON schema file.

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 with the OpenAPI 3.1 Schema Object specification linked in the issue and trace the existing model-generation entry point. No file or test is named, so first identify where OpenAPI models are generated and how standalone input is loaded. Done means generating models from JSON Schema files without endpoint, API, or client files while covering the JSON Schema support needed for OpenAPI compliance.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, tooling
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.