{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evictionsapi-com/json-schema/evictionsapi-com-complaint-to-sign-schema.json",
  "title": "ComplaintToSign",
  "description": "The complaint documents the owner signs where the county requires the owner to sign the complaint itself, and whether exactly this set is signed.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evictionsapi-com-api-evictions-openapi.json#/components/schemas/ComplaintToSign",
  "type": "object",
  "required": [
    "documents",
    "signed"
  ],
  "properties": {
    "documents": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "filename",
          "contentHash"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "contentHash": {
            "type": "string"
          }
        }
      }
    },
    "signed": {
      "type": "boolean"
    },
    "sworn": {
      "type": "object",
      "required": [
        "affiantName",
        "date",
        "documents"
      ],
      "description": "Present where the court filing is an affidavit your named person swears under oath by electronic verification in the app (Georgia: O.C.G.A. § 15-10-53(d)(4)). `affiantName` is the name the affidavit prints, which the signer types; `date` is the day it is dated if sworn now (null once sworn); `documents` are the documents exactly as they will be filed if sworn now, signed and dated (download each from `GET /v1/cases/{id}/signatures/complaint/documents/{specId}`; empty once sworn). Send their `contentHash` values as `documentHashes` when signing.",
      "properties": {
        "affiantName": {
          "type": "string"
        },
        "date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "documents": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "specId",
              "filename",
              "contentHash"
            ],
            "properties": {
              "specId": {
                "type": "string"
              },
              "filename": {
                "type": "string"
              },
              "contentHash": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}