Open zero88 opened 4 years ago
Description PATCH::/api/point/<point_id>
PATCH::/api/point/<point_id>
{ "enabled": false }
point will be erased some enum field to default enum value due to fallback in null value
point
enum
default enum
null
{ "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
POST:/api/point
POST response
GET:/api/point
Solution
enum type
PATCH
Description
PATCH::/api/point/<point_id>
point
will be erased someenum
field todefault enum
value due to fallback innull
valueSomehow, it happens on
POST:/api/point
also althoughPOST response
is correct, butGET:/api/point
response is erasedSolution
null
case inenum type
inPATCH
action