oneOf with Shared Properties
GET/oneof-shared-properties
Schema:
type: object
properties:
sharedProp:
type: string
oneOfProperty:
oneOf:
- type: object
properties:
specificPropA:
type: string
- type: object
properties:
specificPropB:
type: number
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
sharedProp string
oneOfProperty
object
oneOf
specificPropA string
specificPropB number
{
"sharedProp": "string",
"oneOfProperty": {}
}
Loading...