{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hmcts/json-schema/hmcts-standard-applicant-print-dto-schema.json",
  "title": "standard-applicant-print-dto",
  "description": "Print-ready Standard Applicans report payload.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hmcts-standard-applicants-api-openapi.yml#/components/schemas/standard-applicant-print-dto",
  "properties": {
    "reportTitle": {
      "type": "string"
    },
    "searchCriteria": {
      "$ref": "#/$defs/standard-applicant-print-search-criteria-dto"
    },
    "generatedAt": {
      "format": "date-time",
      "type": "string"
    },
    "recordCount": {
      "format": "int32",
      "type": "integer"
    },
    "applicants": {
      "items": {
        "$ref": "#/$defs/standard-applicant-print-row-dto"
      },
      "type": "array"
    }
  },
  "required": [
    "applicants",
    "generatedAt",
    "recordCount",
    "reportTitle",
    "searchCriteria"
  ],
  "type": "object",
  "$defs": {
    "standard-applicant-print-row-dto": {
      "description": "Standard Applicant print row containing only code, name and usage dates. Personal and contact details are excluded.",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ]
        },
        "useFrom": {
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "useTo": {
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "code",
        "name",
        "useFrom",
        "useTo"
      ],
      "type": "object"
    },
    "standard-applicant-print-search-criteria-dto": {
      "description": "Search criteria used for the Standard Applicants print report.",
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "from": {
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        },
        "to": {
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "code",
        "from",
        "name",
        "to"
      ],
      "type": "object"
    }
  }
}