Class: Members::UpdatedEvent

Inherits:
Gitlab::EventStore::Event show all
Defined in:
app/events/members/updated_event.rb

Instance Attribute Summary

Attributes inherited from Gitlab::EventStore::Event

#data

Instance Method Summary collapse

Methods inherited from Gitlab::EventStore::Event

#initialize, json_schema

Constructor Details

This class inherits a constructor from Gitlab::EventStore::Event

Instance Method Details

#schemaObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/events/members/updated_event.rb', line 5

def schema
  {
    'type' => 'object',
    'required' => %w[source_id source_type user_ids],
    'properties' => {
      'source_id' => { 'type' => 'integer' },
      'source_type' => { 'type' => 'string' },
      'user_ids' => {
        'type' => 'array',
        'items' => { 'type' => 'integer' }
      }
    }
  }
end