Skip to content

JSON marshalling and omitempty for empty strings and bools #1332

@kayrus

Description

@kayrus

Certain gophercloud implementations omit empty strings and false bools.

Examples:

  1. invert in loadbalancer/v2/l7policies/requests.go . You can set true to invert, but cannot set false.
  2. Similar issue occurs for name and description fields, e.g. you can set non-empty description, but you cannot remove it.

ref: golang/go#13284
#1314

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