在插件中如何配置数组对象?使用 json_schema? type: objects ?

我明白了,所以对象设置是直接添加到你的 settings.yml 中的,你需要这样格式化:

oauth2_category_example:
    type: objects
    default: []
    area: "oauth2"
    schema:
      name: category_rule
      identifier: name
      properties:
        name:
          type: string
          required: true
          label: 规则名称
          description: 此规则的标签
        category:
          type: categories
          required: true
          label: 类别
          description: 此规则适用的类别
          validations:
            max: 1
        groups:
          type: groups
          label: 组
          description: 与此类别关联的组

这将生成一个如下所示的类别下拉菜单