forked from Chia-Network/chips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
139 lines (139 loc) · 4.96 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"$id": "https://raw.githubusercontent.com/Chia-Network/chips/main/assets/chip-0007/schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "CHIP-0007",
"description": "Chia NFT off-chain metadata format",
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"CHIP-0007"
],
"description": "CHIP number of the metadata format"
},
"name": {
"type": "string",
"description": "Name of the NFT"
},
"description": {
"type": "string",
"description": "Description of the NFT"
},
"minting_tool": {
"type": "string",
"description": "Name or short tag of the minting tool used to create this NFT"
},
"sensitive_content": {
"type": [
"boolean",
"array"
],
"description": "Indicator for sensitive content within the NFT",
"items": {
"type": "string",
"description": "List of types of sensitive content within the NFT"
}
},
"series_number": {
"type": "integer",
"description": "Number that this NFT is within the series (sequence of distinct NFTs)",
"minimum": 1
},
"series_total": {
"type": "integer",
"description": "Total number of NFTs within the series (sequence of distinct NFTs)",
"minimum": 1
},
"attributes": {
"type": "array",
"description": "Attributes of the NFT that may be directly displayed to the user",
"items": {
"type": "object",
"properties": {
"trait_type": {
"type": [
"integer",
"string"
],
"description": "Name of the NFT attribute"
},
"value": {
"type": [
"integer",
"string"
],
"description": "Value of the NFT attribute"
},
"min_value": {
"type": "integer",
"description": "Minimum value of the NFT attribute in relation to other NFTs. Only applicable to integers."
},
"max_value": {
"type": "integer",
"description": "Maximum value of the NFT attribute in relation to other NFTs. Only applicable to integers."
}
},
"required": [
"trait_type",
"value"
]
}
},
"collection": {
"type": "object",
"description": "NFT collection information",
"properties": {
"name": {
"type": "string",
"description": "Name of the NFT collection"
},
"id": {
"type": "string",
"format": "uuid",
"description": "ID of the NFT collection"
},
"attributes": {
"type": "array",
"description": "Attributes of the NFT collection",
"items": {
"type": "object",
"properties": {
"type": {
"type": [
"integer",
"string"
],
"description": "Name of the NFT collection attribute"
},
"value": {
"type": [
"integer",
"string"
],
"description": "Value of the NFT collection attribute"
}
},
"required": [
"type",
"value"
]
}
}
},
"required": [
"name",
"id"
]
},
"data": {
"type": "object",
"description": "Any NFT data which is not suitable for the attributes array, such as non-human-readable data"
}
},
"required": [
"format",
"name",
"description"
]
}