sorface / interview-platform

MIT License
0 stars 1 forks source link

Cant add new answer in PUT /api/questions/{id} #275

Closed VladislavPetyukevich closed 1 month ago

VladislavPetyukevich commented 1 month ago

Error occurs when trying to add a new answer to existing question via PUT /api/questions/{id}. answers in request body:

"answers": [
  {
    "codeEditor": false,
    "title": "Answer 1",
    "content": "answer"
  }
]

Error:

JSON deserialization for type 'Interview.Domain.Questions.QuestionAnswers.QuestionAnswerEditRequest' was missing required properties, including the following: id