Skip to content

CREATE/PATCH Point without specified enum type value #327

@zero88

Description

@zero88

Description
PATCH::/api/point/<point_id>

{
  "enabled": false
}

point will be erased some enum field to default enum value due to fallback in null value

{
  "enabled": false,
  "protocol": "UNKNOWN",
  "kind": "UNKNOWN",
  "type": "UNKNOWN"
}

Somehow, it happens on POST:/api/point also although POST response is correct, but GET:/api/point response is erased

Solution

  • Split null case in enum type in PATCH action

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions