upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIoan Bizău <i@ibz.me>2023-10-31 15:48:04 +0200
committerfiatjaf_ <fiatjaf@gmail.com>2023-10-31 15:54:25 -0300
commita328831a07defcd11924c2330b5aaf4f65ec40aa (patch)
treea1925a83071677588c59fa945194d4a5a1f2050e
parent4b9f13d983245e4dd166f102308afc28b8bb1603 (diff)
Unlimited quantity possible in NIP-15.
-rw-r--r--15.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/15.md b/15.md
index edece81..68d28ff 100644
--- a/15.md
+++ b/15.md
@@ -88,7 +88,7 @@ Fields that are not self-explanatory:
88 "images": <[String], array of image URLs, optional>, 88 "images": <[String], array of image URLs, optional>,
89 "currency": <String, currency used>, 89 "currency": <String, currency used>,
90 "price": <float, cost of product>, 90 "price": <float, cost of product>,
91 "quantity": <int, available items>, 91 "quantity": <int or null, available items>,
92 "specs": [ 92 "specs": [
93 [<String, spec key>, <String, spec value>] 93 [<String, spec key>, <String, spec value>]
94 ], 94 ],
@@ -102,6 +102,7 @@ Fields that are not self-explanatory:
102``` 102```
103 103
104Fields that are not self-explanatory: 104Fields that are not self-explanatory:
105 - `quantity` can be null in the case of items with unlimited abailability, like digital items, or services
105 - `specs`: 106 - `specs`:
106 - an optional array of key pair values. It allows for the Customer UI to present product specifications in a structure mode. It also allows comparison between products 107 - an optional array of key pair values. It allows for the Customer UI to present product specifications in a structure mode. It also allows comparison between products
107 - eg: `[["operating_system", "Android 12.0"], ["screen_size", "6.4 inches"], ["connector_type", "USB Type C"]]` 108 - eg: `[["operating_system", "Android 12.0"], ["screen_size", "6.4 inches"], ["connector_type", "USB Type C"]]`