Skip to main content

Deeply nested circular ref

GET 

/linked-list

A linked list node with next referencing itself through a wrapper object. Tests circular refs that are not direct self-references but go through an intermediate schema.

Schema:

LinkedListNode:
type: object
properties:
value:
type: string
next:
$ref: "#/components/schemas/ListNodeWrapper"

ListNodeWrapper:
type: object
properties:
node:
$ref: "#/components/schemas/LinkedListNode"
metadata:
type: object
properties:
position:
type: integer

Responses

A linked list