1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
openapi: "3.0.3"
info:
title: Deep recursive cyclic refs example
version: "1.0"
paths:
/foo:
$ref: ./paths/foo.yml
components:
schemas:
FilterColumnIncludes:
type: object
properties:
$includes:
$ref: '#/components/schemas/FilterPredicate'
additionalProperties: false
maxProperties: 1
minProperties: 1
FilterPredicate:
oneOf:
- $ref: '#/components/schemas/FilterValue'
- type: array
items:
$ref: '#/components/schemas/FilterPredicate'
minLength: 1
- $ref: '#/components/schemas/FilterPredicateOp'
- $ref: '#/components/schemas/FilterPredicateRangeOp'
FilterPredicateOp:
type: object
properties:
$any:
oneOf:
- type: array
items:
$ref: '#/components/schemas/FilterPredicate'
$none:
oneOf:
- $ref: '#/components/schemas/FilterPredicate'
- type: array
items:
$ref: '#/components/schemas/FilterPredicate'
additionalProperties: false
maxProperties: 1
minProperties: 1
FilterPredicateRangeOp:
type: object
properties:
$lt:
$ref: '#/components/schemas/FilterRangeValue'
additionalProperties: false
maxProperties: 2
minProperties: 2
FilterRangeValue:
oneOf:
- type: number
- type: string
FilterValue:
oneOf:
- type: number
- type: string
- type: boolean
|