{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coudrebros-eu/json-schema/coudrebros-eu-mint-request-schema.json",
  "title": "MintRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coudrebros-eu-openapi.yml#/components/schemas/MintRequest",
  "properties": {
    "ipfs_hash": {
      "type": "string",
      "pattern": "^(Qm[1-9A-HJ-NP-Za-km-z]{44}|bafy[a-z2-7]{50,}|bafk[a-z2-7]{50,})$",
      "title": "Ipfs Hash",
      "description": "IPFS CID of the main asset (image, or video for video NFTs)"
    },
    "ipfs_hash_thumbnail": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(Qm[1-9A-HJ-NP-Za-km-z]{44}|bafy[a-z2-7]{50,}|bafk[a-z2-7]{50,})$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ipfs Hash Thumbnail",
      "description": "IPFS CID of a still-image thumbnail. Required when asset_kind is 'video'."
    },
    "asset_kind": {
      "type": "string",
      "enum": [
        "image",
        "video"
      ],
      "title": "Asset Kind",
      "description": "Type of asset being minted",
      "default": "image"
    },
    "nft_name": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9 ._-]+$",
      "title": "Nft Name",
      "description": "On-chain asset name (max 32 characters; letters, digits, spaces, and . _ - only)"
    },
    "description": {
      "type": "string",
      "maxLength": 500,
      "pattern": "^[^<>]*$",
      "title": "Description",
      "description": "Free-text description embedded in the NFT's CIP-25 metadata (no < or > characters, and no javascript:/vbscript:/data: URIs)",
      "default": ""
    },
    "payment_tx": {
      "type": "string",
      "title": "Payment Tx",
      "description": "Cardano transaction hash of the mint fee payment (currently 4 ADA) sent to the operator's payment address -- see GET /info for the exact address. Must already be confirmed on-chain -- check with GET /payment/status first."
    },
    "destination_address": {
      "type": "string",
      "pattern": "^addr1[a-z0-9]+$",
      "title": "Destination Address",
      "description": "Cardano address to receive the minted NFT. Must be a mainnet address (starts with 'addr1')."
    }
  },
  "type": "object",
  "required": [
    "ipfs_hash",
    "nft_name",
    "payment_tx",
    "destination_address"
  ]
}