{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/QuestionAnswerObject",
"title": "QuestionAnswerObject",
"type": "object",
"required": [
"optionId",
"answer"
],
"properties": {
"optionId": {
"type": "number",
"example": 1,
"description": "Unique identifier for the question option. This attribute will be ingnored, if the value of `type` attribute is `text` or `rating`."
},
"answer": {
"type": "string",
"example": "Yes",
"description": "The user's answers for the question."
}
}
}