{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/epicdirectories/json-schema/epicdirectories-accept-submission-dto-schema.json",
  "title": "AcceptSubmissionDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/epicdirectories-submissions-admin-api-openapi.yml#/components/schemas/AcceptSubmissionDto",
  "type": "object",
  "properties": {
    "listingType": {
      "type": "string",
      "description": "Listing type for the created listing. REQUIRED for `listing_suggestion`; ignored for feedback. Not validated against `Directory.listingTypes` — matching how the rest of the API behaves."
    },
    "slug": {
      "type": "string",
      "description": "Slug for the created listing. Defaults to a slugified title. Returns 409 if it collides with an existing listing of the same type — deliberately not auto-suffixed, since a collision usually means the thing is already listed."
    },
    "listingStatus": {
      "type": "string",
      "description": "Status for the created listing. Defaults to `draft` — accepting a suggestion should not silently publish a stranger's text. Pass `published` to go live immediately.",
      "enum": [
        "draft",
        "published",
        "hidden"
      ]
    },
    "title": {
      "type": "string",
      "description": "Override the title. Defaults to the submitted title — worth setting, since submitter text is unedited."
    }
  }
}