Class: Projects::ProjectPathChangedEvent

Inherits:
Gitlab::EventStore::Event show all
Defined in:
app/events/projects/project_path_changed_event.rb

Instance Attribute Summary

Attributes inherited from Gitlab::EventStore::Event

#data

Instance Method Summary collapse

Methods inherited from Gitlab::EventStore::Event

#initialize

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
# File 'app/events/projects/project_path_changed_event.rb', line 5

def schema
  {
    'type' => 'object',
    'properties' => {
      'project_id' => { 'type' => 'integer' },
      'namespace_id' => { 'type' => 'integer' },
      'root_namespace_id' => { 'type' => 'integer' },
      'old_path' => { 'type' => 'string' },
      'new_path' => { 'type' => 'string' }
    },
    'required' => %w[project_id namespace_id root_namespace_id old_path new_path]
  }
end