Blueprint error with invalid section type

Hello,

currently I have problem in edit the panel. I get the errors in section type as you can see in screenshorts below. I tried some of the solutions from the community, but none of them solved my problem. I am pretty new to the whole thing. Not sure if my txt files is also related.
In general, I am very confused about the concept of “content”, “fields” and “sections” so far. Any tips would be appreciated, thanks.

my yaml file:

title: Project

columns:
  - width: 1/1
    sections:
      headSection:
        type: files
        headline: Cover image
      onDark:
        type: toggle
        help: on white
        label: Title on white

  - width: 1/3
    sections:
      gallery:
        type: files
        layout: cards
        image:
          ratio: 1/1

  - width: 2/3
    sections:
      heading:
        type: text
      featured:
        type: toggle
        help: Will be on home
      text:
        label: Description
        type: textarea

I think you try to define fields as sections. Please post your blueprint.

Hey, thanks for reply. I corrected my post. Now you could see my blueprint file.

Well, as I thought. You define a lot of sections that are, however, fields. So change your code like this, replacing sections with fields:

title: Project

columns:
  - width: 1/1
    fields:
      headSection:
        type: files
        headline: Cover image
      onDark:
        type: toggle
        help: on white
        label: Title on white

  - width: 1/3
    fields:
      gallery:
        type: files
        layout: cards
        image:
          ratio: 1/1

  - width: 2/3
    fields:
      heading:
        type: text
      featured:
        type: toggle
        help: Will be on home
      text:
        label: Description

If your headsection is supposed to be a files section, you have to adapt it like so:

columns:
  - width: 1/1
    sections:
      headSection: # a files section
        type: files
        headline: Cover image
      fields: # a fields section with a set of fields
        fields:
          onDark:
            type: toggle
            help: on white
            label: Title on white

Hey, it works. Thanks for the tip as well.