X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-so-v2.c;fp=src%2Fafb-api-so-v2.c;h=39107887164776f3d0b2021fa409049b4f2b7fc1;hb=e39610f8c9b2e6bbb8a460f7d7ccccbc5161b4ed;hp=6c98ce4d8bb8c20bf33c582400617e109d96322a;hpb=10aa15afc5bc7321d0049823dd173dda11ff3724;p=src%2Fapp-framework-binder.git diff --git a/src/afb-api-so-v2.c b/src/afb-api-so-v2.c index 6c98ce4d..39107887 100644 --- a/src/afb-api-so-v2.c +++ b/src/afb-api-so-v2.c @@ -75,11 +75,11 @@ struct json_object *afb_api_so_v2_make_description_openAPIv3(const struct afb_bi char buffer[256]; const struct afb_verb_v2 *verb; struct json_object *r, *f, *a, *i, *p, *g; - + enum json_tokener_error jerr; if (binding->specification) { - r = json_tokener_parse(binding->specification); - if (r) + r = json_tokener_parse_verbose(binding->specification, &jerr); + if (jerr == json_tokener_success) return r; }