{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://israelvc.com/wp-content/plugins/israelvc-startup-submissions/startup-submission.schema.json",
  "title": "IsraelVC startup submission payload",
  "description": "For registered member form submissions; all requests require human CAPTCHA and editorial approval. No unauthenticated JSON API.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Company name",
      "maxLength": 160,
      "minLength": 1
    },
    "website": {
      "type": "string",
      "description": "Official company website",
      "maxLength": 1000,
      "minLength": 1,
      "format": "uri",
      "pattern": "^https://"
    },
    "summary": {
      "type": "string",
      "description": "What does the company do?",
      "maxLength": 1800,
      "minLength": 1
    },
    "sector": {
      "type": "string",
      "description": "Sector",
      "maxLength": 100,
      "minLength": 1
    },
    "founded": {
      "type": "string",
      "description": "Year founded",
      "maxLength": 4,
      "minLength": 1,
      "pattern": "^(19|20)[0-9]{2}$"
    },
    "founders": {
      "type": "string",
      "description": "Founder names",
      "maxLength": 600,
      "minLength": 1
    },
    "israeli_founder": {
      "type": "string",
      "description": "Israeli founder name and connection at founding",
      "maxLength": 1000,
      "minLength": 1
    },
    "israeli_source": {
      "type": "string",
      "description": "Public source supporting Israeli founding",
      "maxLength": 1000,
      "minLength": 1,
      "format": "uri",
      "pattern": "^https://"
    },
    "hq": {
      "type": "string",
      "description": "Current headquarters city and country",
      "maxLength": 200,
      "minLength": 1
    },
    "israel_location": {
      "type": "string",
      "description": "Israeli office or founding location",
      "maxLength": 200
    },
    "stage": {
      "type": "string",
      "description": "Latest funding stage",
      "maxLength": 50,
      "minLength": 1,
      "enum": [
        "Pre-seed",
        "Seed",
        "Series A",
        "Series B",
        "Series C",
        "Series D+",
        "Growth",
        "Undisclosed"
      ]
    },
    "amount": {
      "type": "string",
      "description": "Latest round amount and currency",
      "maxLength": 100,
      "minLength": 1
    },
    "funding_date": {
      "type": "string",
      "description": "Funding announcement date",
      "maxLength": 10,
      "minLength": 1,
      "format": "date"
    },
    "investors": {
      "type": "string",
      "description": "Institutional venture investors",
      "maxLength": 1000,
      "minLength": 1
    },
    "funding_source": {
      "type": "string",
      "description": "Funding announcement or investor portfolio source",
      "maxLength": 1000,
      "minLength": 1,
      "format": "uri",
      "pattern": "^https://"
    },
    "careers": {
      "type": "string",
      "description": "Official careers page",
      "maxLength": 1000,
      "format": "uri",
      "pattern": "^https://"
    },
    "linkedin": {
      "type": "string",
      "description": "Company LinkedIn page",
      "maxLength": 1000,
      "format": "uri",
      "pattern": "^https://"
    },
    "logo": {
      "type": "string",
      "description": "Official logo or brand asset URL",
      "maxLength": 1000,
      "format": "uri",
      "pattern": "^https://"
    },
    "relationship": {
      "type": "string",
      "description": "Your relationship to the company",
      "maxLength": 200,
      "minLength": 1
    },
    "product_name": {
      "type": "string",
      "description": "API, MCP server or agent name",
      "maxLength": 160
    },
    "product_url": {
      "type": "string",
      "description": "Official product URL",
      "maxLength": 1000,
      "format": "uri",
      "pattern": "^https://"
    },
    "docs": {
      "type": "string",
      "description": "Documentation URL",
      "maxLength": 1000,
      "format": "uri",
      "pattern": "^https://"
    },
    "notes": {
      "type": "string",
      "description": "Additional evidence or notes",
      "maxLength": 1800
    },
    "submission_type": {
      "type": "string",
      "enum": [
        "company",
        "api",
        "mcp",
        "agent"
      ]
    },
    "israeli_attestation": {
      "type": "boolean",
      "const": true
    },
    "venture_attestation": {
      "type": "boolean",
      "const": true
    },
    "consent": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "name",
    "website",
    "summary",
    "sector",
    "founded",
    "founders",
    "israeli_founder",
    "israeli_source",
    "hq",
    "stage",
    "amount",
    "funding_date",
    "investors",
    "funding_source",
    "relationship",
    "submission_type",
    "israeli_attestation",
    "venture_attestation",
    "consent"
  ],
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "submission_type": {
            "enum": [
              "api",
              "mcp",
              "agent"
            ]
          }
        }
      },
      "then": {
        "required": [
          "product_name",
          "product_url",
          "docs"
        ],
        "properties": {
          "product_name": {
            "minLength": 1
          },
          "product_url": {
            "minLength": 1
          },
          "docs": {
            "minLength": 1
          }
        }
      }
    }
  ]
}