{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rctp.dev/schemas/answer-request.schema.json",
  "title": "Answer buyer request",
  "description": "Body of POST /listings/{id}/answers (action listing.answer_buyer).",
  "type": "object",
  "properties": {
    "question_id": {
      "type": "string",
      "pattern": "^q_[A-Za-z0-9]{6,40}$"
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    }
  },
  "additionalProperties": false,
  "required": [
    "question_id",
    "text"
  ]
}
