Nested Structure Fields?

The reference page for the structure fields states, that it is possible to define a structure field inside a structure field → https://getkirby.com/docs/reference/panel/fields/structure#fields

I tried setting up a nested structure field, in order to allow a user to create categories and then create items (consisting of multiple fields, hence the structure field inside the structure field) inside those categories:

projects:
  label: Personal Projects
  type: structure
  fields:
    project_categories:
      label: Project Categories
      type: structure
        fields:
          info:
            label: Project Info
            type: text
          client:
            label: Project Client
            type: text
          year:
            label: Year
            type: date

Unfortunately, I get the following error when trying to enter something into the field:

Where am I making a mistake? Or is it actually not possible to put structure fields inside structure fields?

Your indentation is incorrect, type and fields of the nested field should have the same indent, just like you did it for the upper level structure field.

Of course, simple mistake. Sorry for overlooking it and thanks for pointing it out.