Metadata documents
The JSON documents a publisher writes and anchors on chain.
These are the off-chain documents the protocol anchors: the exact bytes uploaded
to metadataUri are the bytes hashed into metadataHash, with no
canonicalisation step in between.
A document records its own version in its schema field, as a per-kind
versioned URI. That field — not the schema file's $id, which is deliberately
unversioned and never resolved over the network — is the single source of truth
for which version a document was written against.
The schema file's x-schema-version annotation records its current
implementation version; each reference page reads that annotation directly.
CI requires a version bump when the validation shape changes. Earlier
pre-mainnet edits evolved in place at 1.0, so historical documents still
need validation against the schema used when they were written.
Last updated