Skip to content

Commit

Permalink
Merge pull request #6 from corollari/patch-2
Browse files Browse the repository at this point in the history
Add examples to json schema
  • Loading branch information
hal0x2328 authored Aug 7, 2019
2 parents f0c7e99 + aab08d8 commit 57ec7ea
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions nep-11.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ The NVM object must conform to the "NEO NFT Metadata JSON Schema".
The parameter <code>tokenid</code> SHOULD be a valid NFT.
If not, this method SHOULD <code>throw</code> an exception.

====Metadata JSON Schema====
====NEO NFT Metadata JSON Schema====

Following is a description of the JSON Schema:
<pre>
{
"title": "Asset Metadata",
Expand All @@ -200,12 +201,30 @@ If not, this method SHOULD <code>throw</code> an exception.
},
"tokenURI": {
"type": "string",
"description": "Optional. A distinct URI for a given asset."
"description": "Optional. A distinct URI for a given asset that adheres to RFC 3986"
}
}
}
</pre>

Given this schema, the simplest json object that can be constructed is the following:
<pre>
{
"name": "Slime 1",
"description": "A slime"
}
</pre>

And if all the properties are included:
<pre>
{
"name": "Slime 2",
"description": "A slime",
"image": "{some image URI}",
"tokenURI": "{some URI}"
}
</pre>

===Events===

====Transfer====
Expand Down

0 comments on commit 57ec7ea

Please sign in to comment.