Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to process schema when title is ambiguous #1355

Open
@XmasApple

Description

Describe the bug

Unable to process schema /components/schemas/ActualApprovement:
Could not find reference in parsed models or enums
Failure to process schema has resulted in the removal of:
/components/schemas/ActualApprovement
Reference(ref='#/components/schemas/backend__server__src__models__types__approvement__ApprovementStatus')

OpenAPI Spec File
A link to an OpenAPI document which produces this issue. Ideally, write a minimal reproduction only containing the problematic pieces.

{
 "components": {
 "schemas": {
 "backend__gateways__types__ApprovementStatus": {
 "type": "string",
 "enum": [
 "in_progress",
 "suspended",
 "rejected",
 "closed"
 ],
 "title": "ApprovementStatus"
 },
 "backend__server__src__models__types__approvement__ApprovementStatus": {
 "type": "string",
 "enum": [
 "pending",
 "approved",
 "rejected",
 "cancelled"
 ],
 "title": "ApprovementStatus"
 },
"ActualApprovement": {
 "properties": {
 "status": {
 "$ref": "#/components/schemas/backend__server__src__models__types__approvement__ApprovementStatus"
 }
 },
 "type": "object",
 "required": [
 "status",
 ],
 "title": "ActualApprovement"
 },
}}}

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Python Version: 3.9
  • openapi-python-client version 0.27.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /