{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onplana-com/json-schema/onplana-com-intake-form-schema.json",
  "title": "IntakeForm",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onplana-com-openapi.json#/components/schemas/IntakeForm",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string",
      "description": "Globally-unique URL slug. Public submission URL is `/forms/{slug}`."
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "isPasswordProtected": {
      "type": "boolean"
    },
    "targetProjectId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "isPublic": {
      "type": "boolean"
    },
    "notifySelf": {
      "type": "boolean"
    },
    "notifyUserIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "notifyTeamIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "fields": {
      "type": "array",
      "description": "Form schema. Each field describes a single input.",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "text",
              "textarea",
              "email",
              "number",
              "date",
              "select",
              "multiselect",
              "file"
            ]
          },
          "required": {
            "type": "boolean"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "label",
          "type",
          "required"
        ]
      }
    },
    "organizationId": {
      "type": "string",
      "format": "uuid"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "name",
    "slug",
    "fields",
    "organizationId",
    "createdAt"
  ]
}