From 7782a680228b6e76ae2598cacfc65ff250e8e020 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 25 Nov 2023 16:05:05 +0900 Subject: -update to new spec parsers for better error checking --- src/backend/taler-merchant-httpd_helper.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/backend/taler-merchant-httpd_helper.c') diff --git a/src/backend/taler-merchant-httpd_helper.c b/src/backend/taler-merchant-httpd_helper.c index ac181234..9261df91 100644 --- a/src/backend/taler-merchant-httpd_helper.c +++ b/src/backend/taler-merchant-httpd_helper.c @@ -37,10 +37,10 @@ TMH_cmp_wire_account ( const json_t *credit_facade_credentials = NULL; const char *uri; struct GNUNET_JSON_Specification ispec[] = { - GNUNET_JSON_spec_string ("payto_uri", - &uri), + TALER_JSON_spec_payto_uri ("payto_uri", + &uri), GNUNET_JSON_spec_mark_optional ( - GNUNET_JSON_spec_string ("credit_facade_url", + TALER_JSON_spec_web_url ("credit_facade_url", &credit_facade_url), NULL), GNUNET_JSON_spec_mark_optional ( @@ -113,10 +113,10 @@ TMH_accounts_array_valid (const json_t *accounts) const json_t *credit_facade_credentials = NULL; const char *uri; struct GNUNET_JSON_Specification ispec[] = { - GNUNET_JSON_spec_string ("payto_uri", - &uri), + TALER_JSON_spec_payto_uri ("payto_uri", + &uri), GNUNET_JSON_spec_mark_optional ( - GNUNET_JSON_spec_string ("credit_facade_url", + TALER_JSON_spec_web_url ("credit_facade_url", &credit_facade_url), NULL), GNUNET_JSON_spec_mark_optional ( -- cgit v1.2.3