authScimGroupPatchDocumentJsonSchema top-level constant

Map<String, Object?> const authScimGroupPatchDocumentJsonSchema

Strict JSON Schema contract for a SCIM Group PatchOp document.

Implementation

const Map<String, Object?> authScimGroupPatchDocumentJsonSchema =
    <String, Object?>{
      'type': 'object',
      'additionalProperties': false,
      'required': <String>['schemas', 'Operations'],
      'properties': <String, Object?>{
        'schemas': <String, Object?>{
          'type': 'array',
          'minItems': 1,
          'maxItems': 1,
          'items': <String, Object?>{'const': authScimPatchOperationSchema},
        },
        'Operations': <String, Object?>{
          'type': 'array',
          'minItems': 1,
          'maxItems': 32,
          'items': <String, Object?>{
            'type': 'object',
            'additionalProperties': false,
            'required': <String>['op', 'path'],
            'properties': <String, Object?>{
              'op': <String, Object?>{
                'type': 'string',
                'enum': <String>['add', 'replace', 'remove'],
              },
              'path': <String, Object?>{
                'type': 'string',
                'enum': <String>['displayName', 'externalId', 'members'],
              },
              'value': <String, Object?>{},
            },
          },
        },
      },
    };