commit bb45bac2304bd9e8d4a1482641b098af96472f6f
parent a7c9f6d41af7df37554e3340d673fa3648ccbed5
Author: Christian Blättler <blatc2@bfh.ch>
Date: Thu, 21 Dec 2023 18:53:24 +0100
products should be optional
Diffstat:
1 file 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
@@ -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),