Closed malkevych closed 3 years ago
Hello @malkevych. Thank you for the issue.
There might be a few problems here but let's start with anyOf
. If I'm reading your example correctly then anyOf
should not have any sibling properties. In this case that means it should not have the type
and properties
siblings. Also, any object with a $ref
is not allowed to have sibling properties.
Maybe your schema should look like this?
anyOf:
- type: object
required:
- search_text
properties:
search_text:
description: Title of station, city etc can be used as a search text
type: string
minLength: 4
maxLength: 30
- type: object
required:
- bounding_box
properties:
bounding_box:
$ref: bounding-box.yaml
I hope that helps. I'm going to close this issue for now but if it's still a problem comment here and I'll help out and potentially reopen the issue.
Thank you.
I have such schema:
It means that one of search_text or bounding_box must be provided. (oas 3). After running validation the poenapi-encofrcer says next error: