anyOf with Properties in Array Item
GET/anyof-with-properties-in-array-item
Schema:
type: array
items:
type: object
anyOf:
- type: object
title: Item
properties:
orderNo:
type: string
example: "123456"
- type: object
title: Error
properties:
error:
type: string
example: "Invalid order number"
properties:
name:
type: string
example: pencil
required:
- orderNo
Responses
- 200
Successful response