From 4d1b6733fa051ff671619922a0e124b40d1da6e4 Mon Sep 17 00:00:00 2001 From: lash Date: Sun, 5 Mar 2023 12:08:19 +0000 Subject: [PATCH] Add enjin --- enjin.in.json | 25 +++++++++++++++++++++++++ test_valid.json | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 enjin.in.json diff --git a/enjin.in.json b/enjin.in.json new file mode 100644 index 0000000..6a0f1a7 --- /dev/null +++ b/enjin.in.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Enjin NFT metadata extension", + "$id": "/enjin", + + "type": "object", + "properties": { + "simple_property": "example value", + "rich_property": { + "name": "Name", + "value": "123", + "display_value": "123 Example Value", + "class": "emphasis", + "css": { + "color": "#ffffff", + "font-weight": "bold", + "text-decoration": "underline" + } + }, + "array_property": { + "name": "Name", + "value": [1,2,3,4], + "class": "emphasis" + } + } diff --git a/test_valid.json b/test_valid.json index e6d455e..f7e5d40 100644 --- a/test_valid.json +++ b/test_valid.json @@ -14,8 +14,8 @@ "abcdef0123456789abcdef0123456789abcdef00abcdef0123456789abcdef00" ], "attributes": { - "inky": "pinky", - "blinky": "clyde" + "trait_type": "Rating", + "value": 2.2 }, "namespace": "schmame", "attachments": [