{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "TaskResponse.schema.json",
  "type": "object",
  "required": [
    "id",
    "description",
    "dueDate",
    "importance",
    "state"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "examples": [
        42
      ]
    },
    "description": {
      "type": "string",
      "examples": [
        "Renew the passport"
      ],
      "maxLength": 255
    },
    "dueDate": {
      "type": "string",
      "examples": [
        "2026-11-30"
      ],
      "$ref": "LocalDate.schema.json"
    },
    "importance": {
      "type": "string",
      "examples": [
        "HIGH"
      ],
      "$ref": "TaskImportance.schema.json"
    },
    "state": {
      "type": "string",
      "examples": [
        "TODO"
      ],
      "$ref": "TaskState.schema.json"
    }
  }
}
