From e529213ef9229cd7297cad9a4456f2c2529cc6fb Mon Sep 17 00:00:00 2001 From: gzuuus Date: Tue, 9 Apr 2024 17:56:28 +0200 Subject: [PATCH] redundant tags, improved product indexing --- 15.md | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/15.md b/15.md index 0180e4db..8c2d5feb 100644 --- a/15.md +++ b/15.md @@ -47,7 +47,6 @@ A merchant can publish these events: ```json { - "id": , "name": , "description": , "currency": , @@ -75,11 +74,11 @@ Fields that are not self-explanatory: ```json { - "tags": [["d", ]], ... } ``` - - the `d` tag is required, its value MUST be the same as the stall `id`. (NOTE: What is the reason for having the same value of `id` in the content, and `d` tag? Can we get rid of the `id` and just have the `d` tag?) + - the `d` tag is required and represents the stall id. ### Event `30018`: Create or update a product @@ -87,8 +86,7 @@ Fields that are not self-explanatory: ```json { - "id": , - "stall_id": , + // "stall_id": , "name": , "type": , "description": , @@ -128,7 +126,8 @@ Fields that are not self-explanatory: ```json "tags": [ - ["d", ], + ["a", ], ["a", ], ["t", , - "stall_id": , + // "stall_id": , "name": , "description": , "images": <[String], array of image URLs, optional>, @@ -300,6 +299,19 @@ This event leverages naddr to enable comprehensive customization and sharing of * The auction runs for an initial number of seconds after the `start_date`, specified by `duration`. +```json + "tags": [ + ["d", ], + ["a", ] + ["t",