From e7f128f5283604b6adc71d8f5c29e1b54c6025ed Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Mon, 4 Jun 2018 16:31:09 +0200 Subject: Make parsing of action loading non blocking When an action is loaded in controller, parsing the json passed to describe the action was sending back an error if an unknown field was present. Now, the parsing just ignore unknown fields. Bug-AGL: SPEC-1405 Change-Id: If95144ad6190d5d2a45d731e82b28ab4caae7c32 Signed-off-by: Jonathan Aillet --- ctl-lib/ctl-action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctl-lib/ctl-action.c b/ctl-lib/ctl-action.c index db5ddb8..d8d5729 100644 --- a/ctl-lib/ctl-action.c +++ b/ctl-lib/ctl-action.c @@ -301,7 +301,7 @@ int ActionLoadOne(AFB_ApiT apiHandle, CtlActionT *action, json_object *actionJ, memset(action, 0, sizeof (CtlActionT)); if (actionJ) { - err = wrap_json_unpack(actionJ, "{ss,s?s,ss,s?s,s?o !}", + err = wrap_json_unpack(actionJ, "{ss,s?s,ss,s?s,s?o}", "uid", &action->uid, "info", &action->info, "action", &uri, -- cgit 1.2.3-korg