The Swagger X-GW-Serialization object

This object provides information that affects how PolicyCenter serializes the response body. See REST API responses for more information.

Property Type Description Combination style
includeEmptyArrays boolean

If set to true, PolicyCenter preserves empty arrays on serialization in JsonObject or TransformResult objects.

If set to false, PolicyCenter treats a property as null if it contains an empty array. (This value then works in concert with the includeNullProperties option).

If not specified, PolicyCenter uses the default behavior for the data type. This means that PolicyCenter treats this value as true for JsonObjects and false for TransformResults.

N/A
includeNullItems boolean

If set to true, PolicyCenter preserves items with a null value in array properties on JsonObject or TransformResult objects and sets the corresponding output JSON arrays to have a null element.

If set to false, PolicyCenter ignores elements with a null value. This value works in concert with the includeEmptyArrays option. Thus, if this value is false and an array contains only null items, PolicyCenter handles the array as if it were empty.

The default value is false. Setting this to value to true is only valid if the items that have null values also specify x-gw-nullable on the associated JSON Schema.

N/A
includeNullProperties boolean

If set to true, PolicyCenter preserves properties with null values on JsonObject or TransformResult objects and sets those properties to null in the output.

If set to false, PolicyCenter omits properties with a null value in the output.

The default value is false. Setting this value to true is only valid if the properties that have null values also specify x-gw-nullable on the associated JSON Schema.

N/A