Ryan Brink
04/09/2023, 5:14 PM$ref
payload, which is a simple single value data class with that one parameter. short snippet example
BlkioWeightDevice:
description: |
Block IO weight (relative device weight) in the form:
[{"Path": "device_path", "Weight": weight}]
type: "array"
items:
type: "object"
properties:
Path:
type: "string"
Weight:
type: "integer"
minimum: 0
BlkioDeviceReadBps:
description: |
Limit read rate (bytes per second) from a device, in the form:
[{"Path": "device_path", "Rate": rate}]
type: "array"
items:
$ref: "#/definitions/ThrottleDevice"
Ben Woodworth
04/09/2023, 5:27 PMJsonContentPolymorphicSerializer
, which lets you manually determine the type to deserialize as from the shape of the JSON, instead of having an object with a type field?Ryan Brink
04/09/2023, 5:37 PM