{
  "$id": "https://schema.nfh.global/FormSubmission/v2.0",
  "x-iri": "https://schema.nfh.global/FormSubmission/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FormSubmission",
  "x-tags": [
    "common"
  ],
  "description": "A user's submitted response to a Beckn form. Captures the filled-in field values keyed by form field names. Typically attached to a RatingInput to convey feedback form answers alongside a rating.",
  "type": "object",
  "properties": {
    "id": {
      "description": "Identifier of the form that was submitted. Typically the form's URL or the value of the form's url field.",
      "type": "string",
      "format": "uri"
    },
    "submissionId": {
      "description": "Unique identifier for this form submission instance.",
      "type": "string",
      "format": "uuid"
    },
    "data": {
      "description": "Key-value map of form field names to submitted values. Keys correspond to the field identifiers defined in the form; values are the user's responses as strings.",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "submittedAt": {
      "description": "Timestamp at which the form was submitted, in RFC 3339 / ISO 8601 format.",
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}
