Skip to content

Commit

Permalink
repro getkin#764
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <pierrefenoll@gmail.com>
  • Loading branch information
fenollp committed Feb 9, 2023
1 parent ecb06bc commit 6a427ee
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions openapi3/testdata/issue764.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
openapi: 3.0.3
info:
title: API
version: 1.0.0
paths: { }
components:
schemas:
QueryComponent:
oneOf:
- $ref: '#/components/schemas/AndQuery'
- $ref: '#/components/schemas/OrQuery'

OrQuery:
required:
- dis_max
properties:
dis_max:
$ref: '#/components/schemas/OrQueryGroup'

OrQueryGroup:
description: A query that returns the OR of the child queries
required:
- queries
properties:
queries:
type: array
items:
$ref: '#/components/schemas/QueryComponent'

AndQuery:
required:
- bool
properties:
bool:
$ref: '#/components/schemas/AndQueryGroup'

AndQueryGroup:
description: A query that returns the AND of the child queries
properties:
filter:
type: array
items:
$ref: '#/components/schemas/QueryComponent'
must_not:
type: array
items:
$ref: '#/components/schemas/QueryComponent'

Request:
properties:
query:
$ref: '#/components/schemas/QueryComponent'

0 comments on commit 6a427ee

Please sign in to comment.