{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seggwat-com/json-schema/seggwat-com-idea-schema.json",
  "title": "Idea",
  "description": "An idea submitted by a user or created via 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/Idea",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the idea"
    },
    "project_id": {
      "type": "string",
      "description": "The project this idea belongs to"
    },
    "title": {
      "type": "string",
      "description": "Title of the idea"
    },
    "description": {
      "type": "string",
      "description": "Detailed description of the idea"
    },
    "status": {
      "$ref": "#/$defs/IdeaStatus"
    },
    "tag_ids": {
      "type": "array",
      "description": "List of tag identifiers associated with this idea",
      "items": {
        "type": "string"
      }
    },
    "votes_count": {
      "type": "integer",
      "description": "Total number of votes received"
    },
    "comments_count": {
      "type": "integer",
      "description": "Total number of comments on this idea"
    },
    "submitted_by": {
      "type": [
        "string",
        "null"
      ],
      "description": "User identifier from the customer's system (if provided)"
    },
    "submitted_by_email": {
      "type": [
        "string",
        "null"
      ],
      "description": "Email address of the submitter (if provided)"
    },
    "admin_response": {
      "type": [
        "string",
        "null"
      ],
      "description": "Public response from an admin or team member"
    },
    "merged_into_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "ID of the idea this was merged into (if status is Duplicate)"
    },
    "archived": {
      "type": "boolean",
      "description": "Whether the idea has been archived"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the idea was created"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the idea was last updated"
    }
  },
  "required": [
    "id",
    "project_id",
    "title",
    "status",
    "tag_ids",
    "votes_count",
    "comments_count",
    "archived",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "IdeaStatus": {
      "type": "string",
      "description": "Status of an idea",
      "enum": [
        "Pending",
        "Open",
        "Planned",
        "Started",
        "Completed",
        "Declined",
        "Duplicate",
        "Rejected"
      ]
    }
  }
}