{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feedback1-ai/json-schema/feedback1-ai-form-submission-schema.json",
  "title": "FormSubmission",
  "description": "Submit form response (public endpoint)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/feedback1-ai-public-forms-api-openapi.yml#/components/schemas/FormSubmission",
  "properties": {
    "answers": {
      "items": {
        "$ref": "#/$defs/FormResponseAnswerBase"
      },
      "type": "array",
      "title": "Answers"
    },
    "respondent_email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Respondent Email"
    },
    "respondent_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Respondent Name"
    },
    "source_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Url"
    },
    "turnstile_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Turnstile Token"
    }
  },
  "type": "object",
  "required": [
    "answers"
  ],
  "$defs": {
    "FormResponseAnswerBase": {
      "properties": {
        "block_id": {
          "type": "integer",
          "title": "Block Id"
        },
        "answer_value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Answer Value"
        },
        "answer_json": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Answer Json"
        }
      },
      "type": "object",
      "required": [
        "block_id"
      ],
      "title": "FormResponseAnswerBase",
      "description": "Base answer schema"
    }
  }
}