{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/totalparks-com-au/json-schema/totalparks-com-au-claim-request-create-schema.json",
  "title": "ClaimRequestCreate",
  "description": "Schema for creating a new claim request (public form submission).",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/totalparks-com-au-openapi.json#/components/schemas/ClaimRequestCreate",
  "properties": {
    "park_name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 3,
      "title": "Park Name",
      "description": "Name of the park"
    },
    "park_address": {
      "type": "string",
      "maxLength": 500,
      "minLength": 10,
      "title": "Park Address",
      "description": "Full address of the park"
    },
    "park_state": {
      "$ref": "#/$defs/AustralianState",
      "description": "Australian state"
    },
    "contact_name": {
      "type": "string",
      "maxLength": 100,
      "title": "Contact Name",
      "description": "Contact person name"
    },
    "contact_email": {
      "type": "string",
      "format": "email",
      "title": "Contact Email",
      "description": "Contact email address"
    },
    "contact_phone": {
      "type": "string",
      "maxLength": 20,
      "minLength": 8,
      "title": "Contact Phone",
      "description": "Contact phone number"
    },
    "pms_type": {
      "$ref": "#/$defs/app__schemas__park_claim_request__PMSType",
      "description": "Property Management System type"
    },
    "request_newbook_setup": {
      "type": "boolean",
      "title": "Request Newbook Setup",
      "description": "Request Newbook to activate the Total Parks channel (only relevant when pms_type=newbook)",
      "default": false
    },
    "message": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Message",
      "description": "Optional message from submitter"
    },
    "linked_property_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Linked Property Id",
      "description": "Property ID if claiming an existing listing"
    },
    "honeypot": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Website",
      "description": "Leave empty."
    },
    "turnstile_token": {
      "type": "string",
      "title": "Turnstile Token",
      "description": "Cloudflare Turnstile verification token"
    }
  },
  "type": "object",
  "required": [
    "park_name",
    "park_address",
    "park_state",
    "contact_name",
    "contact_email",
    "contact_phone",
    "pms_type",
    "turnstile_token"
  ],
  "$defs": {
    "AustralianState": {
      "type": "string",
      "enum": [
        "new south wales",
        "victoria",
        "queensland",
        "south australia",
        "western australia",
        "tasmania",
        "northern territory",
        "australian capital territory"
      ],
      "title": "AustralianState",
      "description": "Australian states and territories."
    },
    "app__schemas__park_claim_request__PMSType": {
      "type": "string",
      "enum": [
        "newbook",
        "rms",
        "other",
        "none"
      ],
      "title": "PMSType",
      "description": "Property Management System types."
    }
  }
}