# How to configure array objects in a plugin? Using json\_schema with type: objects?

**URL:** <https://meta.discourse.org/t/json-schema-type-objects/405376>\
**Category:** Development\
**Created:** [June 16, 2026, 4:03am UTC](https://meta.discourse.org/t/json-schema-type-objects/405376 "2026-06-16T04:03:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [June 23, 2026, 1:16pm UTC](https://meta.discourse.org/t/json-schema-type-objects/405376/4 "2026-06-23T13:16:15Z")

</div>

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

```yml
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

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/c/e/8ce516a659c22ea7dbc954183b8dc6cb2adaeef6.png)

---

_[View the full topic](https://meta.discourse.org/t/json-schema-type-objects/405376)._
