Skip to main content

Circular ref inside allOf composition

POST 

/comment-thread

A comment that uses allOf to compose shared metadata with a replies array that references the composed schema. Tests that circular markers inside allOf are preserved during normalization.

Schema:

Comment:
allOf:
- $ref: "#/components/schemas/TimestampMixin"
- type: object
properties:
id:
type: integer
author:
type: string
body:
type: string
replies:
type: array
items:
$ref: "#/components/schemas/Comment"

Request

Responses

Created comment