{
  "$id": "https://github.com/iotaledger/tips/main/tips/TIP-0027/irc27.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "A JSON schema for validating IRC27 compliant NFT metadata",
  "properties": {
    "attributes": {
      "description": "array containing any additional data as objects.",
      "type": "array"
    },
    "collectionName": {
      "description": "A human readable name for the NFT collection",
      "type": "string"
    },
    "description": {
      "description": "some information about the NFT project",
      "type": "string"
    },
    "issuerName": {
      "description": "name of the artist",
      "type": "string"
    },
    "name": {
      "description": "A descriptive name of the token",
      "type": "string"
    },
    "royalties": {
      "description": "object containing the payout addresses mapped to their percentage share",
      "type": "object"
    },
    "standard": {
      "description": "identifier for the metadata standard used",
      "pattern": "^IRC27$",
      "type": "string"
    },
    "type": {
      "description": "MIME type of the asset",
      "type": "string"
    },
    "uri": {
      "description": "URI pointing to the resource where the file with `type` MIME type is hosted",
      "type": "string"
    },
    "version": {
      "description": "version of the metadata standard used",
      "pattern": "^v\\d+.\\d+$",
      "type": "string"
    }
  },
  "required": [
    "standard",
    "type",
    "version",
    "uri",
    "name"
  ],
  "title": "IRC27 IOTA NFT Metadata Schema",
  "type": "object"
}