Skip to main content

oneOf with Properties in Array Item

GET 

/oneof-with-properties-in-array-item

Schema:

type: array
items:
type: object
oneOf:
- 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

Successful response