Skip to content

Recursive definitions cause infinite looping #447

@chrisdostert

Description

@chrisdostert

If you attempt to generate models for a schema like below, it results in an infinite loop that never completes.

This was originally mentioned in #309.

openapi: 3.0.1
info:
  title: Recursive refs example
  version: "1.0"
paths: {}
components:
  schemas:
    Complex:
      type: object
      properties:
        parent:
          $ref: '#/components/schemas/Complex'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions