{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peerpush-com/json-schema/peerpush-com-create-product-schema.json",
  "title": "CreateProduct",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peerpush-com-openapi.yml#/components/schemas/CreateProduct",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 40
    },
    "tagline": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 5000
    },
    "websiteUrl": {
      "type": "string",
      "maxLength": 2048,
      "format": "uri"
    },
    "appStoreUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "playStoreUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "mcpServerUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "cliInstallCommand": {
      "type": [
        "string",
        "null"
      ]
    },
    "apiDocsUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "mrr": {
      "default": null,
      "anyOf": [
        {
          "type": "number",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "twitterUsername": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "linkedinUrl": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "categories": {
      "default": [],
      "maxItems": 3,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "useCases": {
      "default": [],
      "maxItems": 3,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "audiences": {
      "default": [],
      "maxItems": 3,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "pricingType": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "Free",
            "Freemium",
            "Subscription",
            "OneTime",
            "Paid"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "startingPrice": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "platforms": {
      "default": [],
      "maxItems": 5,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Web",
          "Api",
          "Desktop",
          "Mcp",
          "Cli",
          "Mobile",
          "Ios",
          "Android"
        ]
      }
    },
    "discountCodes": {
      "maxItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50
          },
          "code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "percentOff": {
            "type": "integer",
            "minimum": 10,
            "maximum": 100
          },
          "validUntil": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "title",
          "code",
          "percentOff",
          "validUntil"
        ]
      }
    },
    "logoUrl": {
      "type": "string",
      "maxLength": 2048,
      "format": "uri"
    },
    "screenshotUrls": {
      "default": [],
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2048,
        "format": "uri"
      }
    },
    "alternatives": {
      "default": [],
      "maxItems": 5,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "internal"
          },
          "productId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "type",
          "productId"
        ]
      }
    },
    "externalId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "contactEmail": {
      "type": "string",
      "maxLength": 320,
      "format": "email",
      "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      "description": "Contact address for the person who should claim this product. Required. Never published or returned by the API, and only PeerPush staff can see it. PeerPush emails it once, to remind the owner to claim the product before the link expires."
    }
  },
  "required": [
    "name",
    "tagline",
    "description",
    "websiteUrl",
    "logoUrl",
    "contactEmail"
  ],
  "additionalProperties": false
}