openapi-generators / openapi-generators/openapi-python-client

Failure to process schema has resulted in the removal

Open
#1,256 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2k
Forks
293
Avg merge
34m
Merged PRs (30d)
1

Description

Describe the bug
When creating the client from a schema, it fails with the following message:

WARNING parsing GET /v1/finding within finding.

Cannot parse response for status code 200 (Could not find reference in parsed models or enums), response will be omitted from generated client

Reference(ref='#/components/schemas/Finding')

Unable to process schema /components/schemas/Finding:

Attempted to generate duplicate models with name "FindingAttribution"

Failure to process schema has resulted in the removal of:
/components/schemas/Finding

OpenAPI Spec File

openapi.json

Desktop (please complete the following information):

  • OS: macOS 15.4.1]
  • Python Version: 3.13.2
  • openapi-python-client version: 0.24.3

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 failure with the attached openapi.json using openapi-python-client 0.24.3. Trace processing of /components/schemas/Finding and the duplicate FindingAttribution models. Done means the schema is processed without removing Finding and the GET /v1/finding response is included in the generated client.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, python
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.