{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citi/json-schema/citi-rfi-save-response-schema.json",
  "title": "RfiSaveResponse",
  "description": "Response body for responding to an RFI.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-rfi-api-openapi.yml#/components/schemas/Rfi-Save-Response",
  "type": "object",
  "properties": {
    "rfi_id": {
      "$ref": "#/$defs/Rfi-Id"
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/Status"
        }
      ],
      "title": "status",
      "description": "RFI status. Possible values: OPEN, CLOSED."
    },
    "questions": {
      "type": "array",
      "title": "questions",
      "description": "An array of questions to respond to.",
      "items": {
        "$ref": "#/$defs/Questions-Response"
      }
    }
  },
  "$defs": {
    "Answer": {
      "type": "string",
      "title": "answer",
      "minLength": 1,
      "maxLength": 2048,
      "description": "The answer for the information request."
    },
    "Common-Information-Request": {
      "title": "CommonInformationRequest",
      "type": "object",
      "description": "Information item that needs to be responded to in an RFI.",
      "properties": {
        "information_name": {
          "$ref": "#/$defs/Information-Name"
        },
        "answer": {
          "$ref": "#/$defs/Answer"
        }
      }
    },
    "Information-Name": {
      "type": "string",
      "title": "information_name",
      "minLength": 1,
      "maxLength": 64,
      "description": "Information name."
    },
    "Information-Request-Response": {
      "title": "InformationRequestResponse",
      "description": "Information item that needs to be responded to in an RFI.",
      "allOf": [
        {
          "$ref": "#/$defs/Common-Information-Request"
        },
        {
          "type": "object",
          "title": "Information-Request-Response"
        }
      ]
    },
    "Question-Id": {
      "type": "string",
      "title": "question_id",
      "minLength": 1,
      "maxLength": 64,
      "description": "The unique id for specific question."
    },
    "Questions-Response": {
      "title": "QuestionResponse",
      "type": "object",
      "description": "A question with response information for RFI submission.",
      "properties": {
        "question_id": {
          "$ref": "#/$defs/Question-Id"
        },
        "information_request": {
          "type": "array",
          "title": "information_request",
          "description": "The information to be responded to.",
          "items": {
            "$ref": "#/$defs/Information-Request-Response"
          }
        }
      }
    },
    "Rfi-Id": {
      "type": "string",
      "title": "rfi_id",
      "minLength": 1,
      "maxLength": 128,
      "description": "RFI unique id."
    },
    "Status": {
      "type": "string",
      "description": "Status of the request.",
      "title": "status",
      "minLength": 1,
      "maxLength": 64
    }
  }
}