oneOf with Complex Types
GET/oneof-complex-types
Schema:
type: object
properties:
oneOfProperty:
oneOf:
- type: object
properties:
objectProp:
type: string
- type: array
items:
type: number
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
oneOfProperty
object
oneOf
objectProp string
number
{
"oneOfProperty": {}
}
Loading...