{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seggwat-com/json-schema/seggwat-com-contact-message-schema.json",
  "title": "ContactMessage",
  "description": "A contact message submitted via the API",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/seggwat-com-api-openapi.json#/components/schemas/ContactMessage",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the contact message"
    },
    "project_id": {
      "type": "string",
      "description": "The project this message belongs to"
    },
    "name": {
      "type": "string",
      "description": "Name of the person who submitted the message"
    },
    "email": {
      "type": "string",
      "description": "Email address of the sender"
    },
    "subject": {
      "type": [
        "string",
        "null"
      ],
      "description": "Subject of the message (if provided)"
    },
    "message": {
      "type": "string",
      "description": "The message body"
    },
    "status": {
      "$ref": "#/$defs/ContactMessageStatus"
    },
    "path": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL path where the message was submitted (if available)"
    },
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "Application version when the message was submitted (if tracked)"
    },
    "archived": {
      "type": "boolean",
      "description": "Whether the message has been archived"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the message was submitted"
    }
  },
  "required": [
    "id",
    "project_id",
    "name",
    "email",
    "message",
    "status",
    "archived",
    "created_at"
  ],
  "$defs": {
    "ContactMessageStatus": {
      "type": "string",
      "description": "Status of a contact message",
      "enum": [
        "New",
        "Read",
        "Replied",
        "Archived"
      ]
    }
  }
}