{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LegalDocumentDTO",
  "title": "LegalDocumentDTO",
  "type": "object",
  "description": "Output serializer \u2014 what the API returns for every row.",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "document_type": {
      "type": "string"
    },
    "company_name": {
      "type": "string"
    },
    "representative_email": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "created_by": {
      "allOf": [
        {
          "$ref": "#/components/schemas/LegalDocumentCreator"
        }
      ],
      "nullable": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "company_name",
    "created_at",
    "created_by",
    "document_type",
    "id",
    "representative_email",
    "status"
  ]
}