Skip to content

Commit

Permalink
Unlimited quantity possible in NIP-15.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibz authored and fiatjaf committed Oct 31, 2023
1 parent 4b9f13d commit a328831
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 15.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Fields that are not self-explanatory:
"images": <[String], array of image URLs, optional>,
"currency": <String, currency used>,
"price": <float, cost of product>,
"quantity": <int, available items>,
"quantity": <int or null, available items>,
"specs": [
[<String, spec key>, <String, spec value>]
],
Expand All @@ -102,6 +102,7 @@ Fields that are not self-explanatory:
```

Fields that are not self-explanatory:
- `quantity` can be null in the case of items with unlimited abailability, like digital items, or services
- `specs`:
- 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
- eg: `[["operating_system", "Android 12.0"], ["screen_size", "6.4 inches"], ["connector_type", "USB Type C"]]`
Expand Down

0 comments on commit a328831

Please sign in to comment.