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'