tao-test/app/vendor/cebe/php-openapi/tests/spec/data/recursion2.yaml

44 lines
881 B
YAML
Raw Normal View History

2022-08-29 20:14:13 +02:00
openapi: 3.0.2
info:
title: My API
version: "123"
components:
schemas:
SomeResponse:
type: object
properties:
name:
type: string
description: Name of SomeResponse
recursive:
$ref: '#/components/schemas/RecursiveItem'
AnotherResponse:
type: object
properties:
uuid:
type: string
format: uuid
description: UUID of AnotherResponse
recursive:
$ref: '#/components/schemas/RecursiveItem'
RecursiveItem:
type: object
properties:
children:
type: array
items:
oneOf:
- $ref: '#/components/schemas/RecursiveItem'
- $ref: '#/components/schemas/SomeResponse'
paths:
'/':
get:
description: default
responses:
200:
description: ok