|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema", |
| 3 | + "type": "object", |
| 4 | + "title": "Quest Chain Metadata", |
| 5 | + "description": "This defines the schema for the metadata supported by Quest Chain System", |
| 6 | + "default": {}, |
| 7 | + "examples": [ |
| 8 | + { |
| 9 | + "name": "DAO Quest", |
| 10 | + "description": "This describes the quest", |
| 11 | + "image_url": "ipfs://QmZTzK8YAsPcLoKENzWmXv519pDmX1XgNQ6h9RtnSjwksn", |
| 12 | + "external_url": "ipfs://QmZTzK8YAsPcLoKENzWmXv519pDmX1XgNQ6h9RtnSjwksn" |
| 13 | + } |
| 14 | + ], |
| 15 | + "required": ["name", "description"], |
| 16 | + "properties": { |
| 17 | + "name": { |
| 18 | + "$id": "#/properties/name", |
| 19 | + "type": "string", |
| 20 | + "title": "The name schema", |
| 21 | + "description": "This property is the name of the item", |
| 22 | + "default": "", |
| 23 | + "examples": ["DAO Quest"] |
| 24 | + }, |
| 25 | + "description": { |
| 26 | + "$id": "#/properties/description", |
| 27 | + "type": "string", |
| 28 | + "title": "The description schema", |
| 29 | + "description": "This property is the description of the item in plain text or optionally in markdown", |
| 30 | + "default": "", |
| 31 | + "examples": ["This describes the quest"] |
| 32 | + }, |
| 33 | + "image_url": { |
| 34 | + "$id": "#/properties/image_url", |
| 35 | + "type": "string", |
| 36 | + "title": "The image_url schema", |
| 37 | + "description": "This property defines an optional image URL for the item", |
| 38 | + "default": "", |
| 39 | + "examples": ["ipfs://QmZTzK8YAsPcLoKENzWmXv519pDmX1XgNQ6h9RtnSjwksn"] |
| 40 | + }, |
| 41 | + "animation_url": { |
| 42 | + "$id": "#/properties/animation_url", |
| 43 | + "type": "string", |
| 44 | + "title": "The animation_url schema", |
| 45 | + "description": "This property defines an optional animation URL that can reference a multi-media attachment of the item", |
| 46 | + "default": "", |
| 47 | + "examples": ["ipfs://QmZTzK8YAsPcLoKENzWmXv519pDmX1XgNQ6h9RtnSjwksn"] |
| 48 | + }, |
| 49 | + "external_url": { |
| 50 | + "$id": "#/properties/external_url", |
| 51 | + "type": "string", |
| 52 | + "title": "The external_url schema", |
| 53 | + "description": "This property defines an optional external URL that can reference a webpage or external asset of the item", |
| 54 | + "default": "", |
| 55 | + "examples": ["ipfs://QmZTzK8YAsPcLoKENzWmXv519pDmX1XgNQ6h9RtnSjwksn"] |
| 56 | + }, |
| 57 | + "attributes": { |
| 58 | + "$id": "#/properties/attributes", |
| 59 | + "type": "array", |
| 60 | + "title": "Attributes", |
| 61 | + "description": "OpenSea NFT attributes", |
| 62 | + "default": [], |
| 63 | + "examples": [ |
| 64 | + [ |
| 65 | + { |
| 66 | + "trait_type": "Base", |
| 67 | + "value": "narwhal" |
| 68 | + } |
| 69 | + ] |
| 70 | + ], |
| 71 | + "items": { |
| 72 | + "$id": "#/properties/attributes/items", |
| 73 | + "anyOf": [ |
| 74 | + { |
| 75 | + "$id": "#/properties/attributes/items/anyOf/0", |
| 76 | + "type": "object", |
| 77 | + "title": "Attributes Item", |
| 78 | + "description": "OpenSea NFT attribute", |
| 79 | + "default": {}, |
| 80 | + "examples": [ |
| 81 | + { |
| 82 | + "trait_type": "Base", |
| 83 | + "value": "narwhal" |
| 84 | + } |
| 85 | + ], |
| 86 | + "required": ["value"], |
| 87 | + "properties": { |
| 88 | + "display_type": { |
| 89 | + "$id": "#/properties/attributes/items/anyOf/0/properties/display_type", |
| 90 | + "type": "string", |
| 91 | + "enum": ["number", "boost_number", "boost_percentage"], |
| 92 | + "title": "Display Type", |
| 93 | + "description": "OpenSea NFT attribute display type", |
| 94 | + "default": "", |
| 95 | + "examples": ["number"] |
| 96 | + }, |
| 97 | + "trait_type": { |
| 98 | + "$id": "#/properties/attributes/items/anyOf/0/properties/trait_type", |
| 99 | + "type": "string", |
| 100 | + "title": "Trait Type", |
| 101 | + "description": "OpenSea NFT attribute trait type", |
| 102 | + "default": "", |
| 103 | + "examples": ["Base"] |
| 104 | + }, |
| 105 | + "value": { |
| 106 | + "$id": "#/properties/attributes/items/anyOf/0/properties/value", |
| 107 | + "type": ["string", "number"], |
| 108 | + "title": "Trait Value", |
| 109 | + "description": "OpenSea NFT attribute value type", |
| 110 | + "default": "", |
| 111 | + "examples": ["narwhal", 5] |
| 112 | + } |
| 113 | + } |
| 114 | + } |
| 115 | + ] |
| 116 | + } |
| 117 | + } |
| 118 | + }, |
| 119 | + "additionalProperties": false |
| 120 | +} |
0 commit comments