Skip to content

jackson suppress serializing properties with null values #1091

@Grim-lock

Description

@Grim-lock

https://github.com/ContainX/openstack4j/blob/master/core/src/main/java/org/openstack4j/core/transport/ObjectMapperSingleton.java?utf8=%E2%9C%93#L25
Openstack4j does not serialize properties with null values, and this is a base function.

In octavia, PUT method of Pools:
"A JSON object specifying the session persistence for the pool or null for no session persistence"
pls see https://developer.openstack.org/api-ref/load-balancer/v2/#create-pool for more detail

Is there a easy way to config openstack4j to serialize a null value property?

@auhlig

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions