---
swagger: '2.0'
info:
version: 0.0.0
title: Simple API
paths:
/:
get:
responses:
200:
description: OK
definitions:
Thing:
properties:
parent_thing:
allOf:
- $ref: '#/definitions/Thing'
description: parent of this thing
Here is the minimal example. If I write this in swagger-editor, it shows that parent_thing is of type undefined
: https://i.stack.imgur.com/Hqta3.png
How do I fix that? I want Thing
to have a reference to other Thing
s.