{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-form-submission-response-dto-schema.json",
  "title": "FormSubmissionResponseDto",
  "description": "Form submission response",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-form-submissions-api-openapi.yml#/components/schemas/FormSubmissionResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for the form submission"
    },
    "organizationId": {
      "type": "string",
      "description": "The unique identifier for the client organization within Certify"
    },
    "mappedData": {
      "description": "The mapped responses for the form submission. The structure of this object is flexible and can vary based on the form and its fields."
    },
    "submissionData": {
      "description": "The raw responses for the form submission. The structure of this object is flexible and can vary based on the form and its fields."
    },
    "submissionPdf": {
      "description": "The PDF document of the form submission, if available"
    },
    "submittedBy": {
      "$ref": "#/$defs/FormSubmissionSubmittedByResponse",
      "type": "object",
      "description": "The flexible data object containing the submitted by information"
    },
    "form": {
      "description": "Information about the form associated with the submission"
    },
    "formVersionId": {
      "type": "string",
      "description": "The id of the version of the form used for this submission"
    },
    "createdAt": {
      "type": "string",
      "description": "The date and time when the form submission was created"
    },
    "createdBy": {
      "type": "string",
      "description": "The identifier of the user or system that created the submission"
    },
    "updatedAt": {
      "type": "string",
      "description": "The date and time when the form submission was last updated"
    }
  },
  "$defs": {
    "FormSubmissionSubmittedByResponse": {
      "type": "object",
      "description": "Information about who submitted the form",
      "properties": {
        "email": {
          "type": "string",
          "description": "The email of the user who submitted the form"
        },
        "user": {
          "description": "The user information of the person who submitted the form"
        }
      }
    }
  }
}