diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-11-25 16:05:05 +0900 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-11-25 16:05:05 +0900 |
commit | 7782a680228b6e76ae2598cacfc65ff250e8e020 (patch) | |
tree | 8a1e4e462808077b49cee038fed6b634d9176313 /src/backend/taler-merchant-httpd_helper.c | |
parent | 6fa958a3cec156bc0eb89ddfae8b150d7400d2be (diff) |
-update to new spec parsers for better error checking
Diffstat (limited to 'src/backend/taler-merchant-httpd_helper.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_helper.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 ( |