Can't display basic-captcha

Hi again all,

I have tried to include a basic CAPTCHa in my form, and I can’t get it to display. Before I included the CAPTCHa, the form worked and everything displayed correctly.

Here’s the form.md code that I have with most bits that are working omitted

---
title: 'Contact me'
form:
    name: contact-form
    fields:
        # Skipped a few fields that display correctly
        -
            name: requirements
            label: Requirements
            size: long
            placeholder: 'Enter your requirements'
            type: textarea
            validate:
                required: true
        -
            name: 'Attach files'
            type: file
            label: 'Attach files'
            destination: self@
            multiple: true
            filesize: 10
            accept:
                - 'image/*'
                - .pdf
                - .doc
                - .docx
        -
            basic-captcha:
              type: basic-captcha
              placeholder: Type the 6 characters
              label: Please verify that you are human. 

    buttons:
        -
            type: submit
            value: Submit
            classes: 'gdlr-button with-border excerpt-read-more'
    process:
        -
            basic-captcha:
              message: Humanity verification failed, please try again...
        -
            email:
                from: '{{ config.plugins.email.from }}'
                to:
                    - '{{ config.plugins.email.from }}'
                    - '{{ form.value.email }}'
                subject: '[web contact] {{ form.value.name|e }}'
                body: '{% include ''forms/data.html.twig'' %}'
---

Can someone please tell me where I should be putting basic-captcha or what else I might be doing wrong?

@slappcoding, The location of the basic-captcha field is is fine, but the definition is not. You are defining the basic-captcha field using a mix of the YAML map style (aka dictionary) and sequence style (aka array), while all other fields use the sequential format.