{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/andrewsfreebies-com/json-schema/andrewsfreebies-com-deal-flag-input-schema.json",
  "title": "DealFlagInput",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/andrewsfreebies-com-openapi.json#/components/schemas/DealFlagInput",
  "type": "object",
  "required": [
    "record_id"
  ],
  "additionalProperties": false,
  "properties": {
    "record_id": {
      "type": "string",
      "maxLength": 200,
      "description": "Exact id returned by an Andrew’s Freebies search or record endpoint."
    },
    "record_type": {
      "type": "string",
      "enum": [
        "trial",
        "entitlement"
      ],
      "description": "Optional when the id uniquely resolves."
    },
    "reason": {
      "type": "string",
      "enum": [
        "expired",
        "unavailable",
        "terms-changed",
        "incorrect"
      ],
      "default": "expired"
    },
    "evidence_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048
    },
    "note": {
      "type": "string",
      "maxLength": 1000
    },
    "reporter": {
      "type": "string",
      "maxLength": 120
    }
  }
}