{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hlido-eu/json-schema/hlido-eu-incident-submit-request-schema.json",
  "title": "IncidentSubmitRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hlido-eu-openapi.json#/components/schemas/IncidentSubmitRequest",
  "type": "object",
  "required": [
    "slug",
    "severity",
    "title",
    "summary"
  ],
  "properties": {
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{0,80}$"
    },
    "severity": {
      "$ref": "#/$defs/IncidentSeverity"
    },
    "title": {
      "type": "string",
      "minLength": 5,
      "maxLength": 200
    },
    "summary": {
      "type": "string",
      "minLength": 20,
      "maxLength": 4000
    },
    "evidence_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "maxItems": 10
    },
    "observed_at": {
      "type": "string",
      "format": "date-time"
    },
    "submitter_handle": {
      "type": "string",
      "maxLength": 80
    },
    "submitter_email": {
      "type": "string",
      "format": "email",
      "description": "Hashed at intake; never stored in plaintext."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "IncidentSeverity": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "critical"
      ]
    }
  }
}