OpenAPITools / OpenAPITools/openapi-generator

[REQ] info property in json

Open
#10,360 1 comment 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.

The info property within the json can't be accessed in generated code.

Describe the solution you'd like

I need the info property from the OpenAPI json within the generated code (dio-next generator). More important is the version property.

Additional context

If I can get the info property from the json, I can expose the value within my app and to the backend.

PS: I would like to create a PR, if someone points me into the right direction, where I can add it.

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 tracing the dio-next generator entry point and how it reads the OpenAPI JSON. Determine where the info version should be carried into generated code, then add coverage for exposing that value and verify the generated output. The issue names no files or tests, so the relevant locations must first be identified.

Written by the indexing model from the issue text.

Assessment

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