openapi-python-client icon indicating copy to clipboard operation
openapi-python-client copied to clipboard

Failure to process schema has resulted in the removal

Open mreiche opened this issue 8 months ago • 1 comments

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

mreiche avatar May 21 '25 11:05 mreiche

There seems to be an internal conflict of Finding, which creates a model FindingAttribution that clashes with the already defined model FindingAttribution.

mreiche avatar May 22 '25 11:05 mreiche