Skip to content

Instantly share code, notes, and snippets.

@ponelat
Created November 16, 2021 15:33
Show Gist options
  • Select an option

  • Save ponelat/e3e7e3e55247ef6d2cd09926bbeb4241 to your computer and use it in GitHub Desktop.

Select an option

Save ponelat/e3e7e3e55247ef6d2cd09926bbeb4241 to your computer and use it in GitHub Desktop.
Recursive rendering issue

Issue is that the leaf node isn't shown. Possibly due to the resolver trying to fully realise the definition. image

swagger: '2.0'
info:
title: Recursive
description: Recursive
version: 1.0.0
paths:
/foo:
get:
description: ok
responses:
default:
description: ok
definitions:
Bob:
type: object
properties:
alices:
type: array
items:
$ref: '#/definitions/Alice'
foo:
type: string
bar:
type: integer
Alice:
type: object
properties:
bobs:
type: array
items:
$ref: '#/definitions/Bob'
baz:
type: integer
alices:
$ref: '#/definitions/Alice'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment