// json-schema for params on usergroup `create` and `update` methods.


'use strict';


module.exports = {
  short_name: {
    type: 'string',
    required: true,
    minLength: 1
  },
  parent_group: {
    type: [ 'string', 'null' ],
    required: true
  },
  settings: {
    type: 'object',
    required: true,
    patternProperties: {
      '.*': {
        type: [ 'object', 'null' ],
        required: true,
        additionalProperties: false,
        properties: {
          value: {
            required: true
          },
          force: {
            type: 'boolean',
            required: true
          }
        }
      }
    }
  }
};

// json-schema for params on usergroup `create` and `update` methods.


'use strict';


module.exports = {
  short_name: {
    type: 'string',
    required: true,
    minLength: 1
  },
  parent_group: {
    type: [ 'string', 'null' ],
    required: true
  },
  settings: {
    type: 'object',
    required: true,
    patternProperties: {
      '.*': {
        anyOf: [
          { type: 'null' },
          {
            type: 'object',
            additionalProperties: false,
            properties: {
              value: {
                required: true
              },
              force: {
                type: 'boolean',
                required: true
              }
            }
          }
        ]
      }
    }
  }
};

Fix json schema in admin controllers
Fix json schema in admin controllers
