{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetkeep-co-uk/json-schema/fleetkeep-co-uk-defect-input-schema.json",
  "title": "DefectInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleetkeep-co-uk-defects-api-openapi.yml#/components/schemas/DefectInput",
  "type": "object",
  "required": [
    "vehicleId",
    "title",
    "notes",
    "priority",
    "reportedBy",
    "followUpAction"
  ],
  "properties": {
    "vehicleId": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "notes": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1200
    },
    "priority": {
      "type": "string",
      "enum": [
        "low",
        "normal",
        "high",
        "safety_critical"
      ]
    },
    "reportedBy": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "followUpAction": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1200
    }
  },
  "additionalProperties": false
}