Open
Description
If you have multiple types (oneOf) of items in an array only the first is validated against:
schema
conditions:
type: array
items:
oneOf:
- type: object
required:
- image
properties:
image:
type: string
additionalProperties: false
- type: object
required:
- package
properties:
package:
type: array
items:
type: string
minItems: 2
request
{'conditions': [{'image': 'data'}, {'package': ['info', 'data']}]}
Yields: openapi_core.schema.schemas.exceptions.UndefinedSchemaProperty: Undefined properties in schema: {'package'}
Metadata
Metadata
Assignees
Labels
No labels