{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/promptfrenzy-com/json-schema/promptfrenzy-com-tool-submission-schema.json",
  "title": "ToolSubmission",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/promptfrenzy-com-openapi.json#/components/schemas/ToolSubmission",
  "type": "object",
  "required": [
    "name",
    "url",
    "description",
    "category",
    "pricing",
    "badge_url"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 80
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "HTTPS only"
    },
    "description": {
      "type": "string",
      "minLength": 20,
      "maxLength": 200
    },
    "category": {
      "type": "string",
      "enum": [
        "image-generation",
        "video-generation",
        "text-generation",
        "audio-generation",
        "prompt-tools",
        "agents",
        "chatbots",
        "code-assist",
        "productivity",
        "data-analysis",
        "voice-cloning",
        "other"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z0-9-]+$",
        "maxLength": 30
      },
      "maxItems": 5
    },
    "pricing": {
      "type": "string",
      "enum": [
        "free",
        "freemium",
        "paid",
        "subscription"
      ]
    },
    "logo": {
      "type": "string",
      "format": "uri"
    },
    "badge_url": {
      "type": "string",
      "format": "uri",
      "description": "URL on a domain you control where the PromptFrenzy badge is pasted as static, dofollow HTML. Server fetches this and confirms the badge is present."
    },
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9](?:[a-z0-9-]{0,48}[a-z0-9])?$",
      "description": "Optional. Derived from URL hostname if omitted."
    },
    "submitted_by": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9-]+$",
      "maxLength": 80,
      "description": "Optional. GitHub username or contact handle."
    }
  }
}