{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clusterhack-dev/json-schema/clusterhack-dev-judge-schema.json",
  "title": "Judge",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clusterhack-dev-openapi.yml#/components/schemas/Judge",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "event": {
      "type": "integer"
    },
    "user": {
      "type": [
        "integer",
        "null"
      ],
      "title": "Judge"
    },
    "username": {
      "type": "string",
      "readOnly": true
    },
    "email": {
      "title": "Judge email",
      "oneOf": [
        {
          "type": "string",
          "format": "email",
          "maxLength": 254
        },
        {
          "type": "string",
          "maxLength": 0
        }
      ]
    },
    "display_name": {
      "type": "string",
      "maxLength": 200
    },
    "invite_url": {
      "type": "string",
      "description": "The personal scoring link, for accountless (email) judges only.\n\nA judge with an account signs in normally, so there is no link to hand\nout; exposing one would be a second, weaker way into their scores.",
      "readOnly": true
    },
    "invited_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "accepted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true
    },
    "has_name_consent": {
      "type": "boolean",
      "description": "True once this judge agreed to be named on public project pages.",
      "readOnly": true
    },
    "needs_name_consent": {
      "type": "boolean",
      "description": "True until the judge has answered the naming question, either way.",
      "readOnly": true
    },
    "public_name": {
      "type": "string",
      "description": "The byline for public pages — empty unless the judge agreed to it.\n\nPublishing a name needs BOTH signatures: the organizer's, who typed\n``display_name`` on the invite under their own reputation, and the\njudge's own consent. Nothing is copied onto the Score at write time, so\nwithdrawing consent empties the byline on every page at once — the\nquote itself stays, unsigned.",
      "readOnly": true
    },
    "name_consent_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true,
      "title": "Agreed to be named at"
    },
    "name_consent_answered_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true,
      "title": "Naming question answered at"
    }
  },
  "required": [
    "accepted_at",
    "event",
    "has_name_consent",
    "id",
    "invite_url",
    "invited_at",
    "name_consent_answered_at",
    "name_consent_at",
    "needs_name_consent",
    "public_name",
    "username"
  ]
}