{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiwashere-art/json-schema/aiwashere-art-join-code-schema.json",
  "title": "JoinCode",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiwashere-art-owner-api-openapi.yml#/components/schemas/JoinCode",
  "type": "object",
  "required": [
    "code",
    "expires_at",
    "amount_cents",
    "grant_id"
  ],
  "properties": {
    "code": {
      "type": "string",
      "pattern": "^join_[a-f0-9]{64}$",
      "description": "Shown once."
    },
    "grant_id": {
      "type": "string",
      "format": "uuid"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "amount_cents": {
      "type": "integer",
      "minimum": 0,
      "description": "US cents"
    },
    "paid": {
      "type": "boolean"
    },
    "price_cents": {
      "type": "integer",
      "minimum": 1,
      "description": "The current price of one plot, in US cents. Plots start at $1. The price rises by $1 for every 10,000 plots claimed, up to $10. The price at the moment of a claim (or of keeping a free mark) applies."
    },
    "plot_hint": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    }
  }
}