summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2023-12-21 18:53:24 +0100
committerChristian Grothoff <grothoff@gnunet.org>2023-12-23 00:10:29 +0800
commitbb45bac2304bd9e8d4a1482641b098af96472f6f (patch)
treeac789c966c9d16868298a1b8a05a6d531ba652f8
parenta7c9f6d41af7df37554e3340d673fa3648ccbed5 (diff)
downloadmerchant-bb45bac2304bd9e8d4a1482641b098af96472f6f.tar.gz
merchant-bb45bac2304bd9e8d4a1482641b098af96472f6f.tar.bz2
merchant-bb45bac2304bd9e8d4a1482641b098af96472f6f.zip
products should be optional
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c
index 52eaa11d..08522f28 100644
--- a/src/backend/taler-merchant-httpd_private-post-orders.c
+++ b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -1410,8 +1410,10 @@ parse_order (struct OrderContext *oc)
&oc->parse_order.brutto),
GNUNET_JSON_spec_string("summary",
&oc->parse_order.summary),
+ GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_array_const ("products",
&oc->parse_order.products),
+ NULL),
GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_json ("summary_i18n",
&oc->parse_order.summary_i18n),