How to configure array objects in a plugin? Using json_schema with type: objects?

Oh I see, so the object settings are added directly to your settings.yml you’d want to format it like this:

oauth2_category_example:
    type: objects
    default: []
    area: "oauth2"
    schema:
      name: category_rule
      identifier: name
      properties:
        name:
          type: string
          required: true
          label: Rule name
          description: A label for this rule
        category:
          type: categories
          required: true
          label: Category
          description: The category this rule applies to
          validations:
            max: 1
        groups:
          type: groups
          label: Groups
          description: Groups associated with this category

Which would produce a category dropdown like this