{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-create-rfirequest-schema.json",
  "title": "CreateRFIRequest",
  "description": "Founder: record an RFI + the per-response variable charge (Wave 6D).\n\nThe charge VARIES per project — the founder enters ``response_charge_aud`` and\na short ``charge_scope`` describing the work. The customer must approve the\nadditional work (the ``approve_extra_work`` CTA) before Casa drafts + responds.\n``items`` carries the council's request items so the WS7 draft endpoint can\ngenerate the response once the charge is approved.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-da-project-api-openapi.yml#/components/schemas/CreateRFIRequest",
  "properties": {
    "response_charge_aud": {
      "type": "number",
      "maximum": 1000000.0,
      "minimum": 0.0,
      "title": "Response Charge Aud",
      "description": "Per-response variable charge (AUD)."
    },
    "charge_scope": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Charge Scope",
      "description": "Short description of the additional RFI-response work."
    },
    "rfi_number": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Rfi Number"
    },
    "issued_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Issued Date",
      "description": "ISO date council issued the RFI."
    },
    "response_due_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Response Due Date",
      "description": "ISO date the response is due."
    },
    "items": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Items",
      "description": "Council's RFI items (each {council_request: ...}) for the WS7 draft."
    },
    "source_document_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Document Id"
    }
  },
  "type": "object",
  "required": [
    "response_charge_aud",
    "charge_scope"
  ]
}