summaryrefslogtreecommitdiff
path: root/app/events/pages_domains/pages_domain_created_event.rb
blob: 430a3e0100c4d0ecb5ea8ece7f1225dbbbadc5d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module PagesDomains
  class PagesDomainCreatedEvent < ::Gitlab::EventStore::Event
    def schema
      {
        'type' => 'object',
        'properties' => {
          'project_id' => { 'type' => 'integer' },
          'namespace_id' => { 'type' => 'integer' },
          'root_namespace_id' => { 'type' => 'integer' },
          'domain_id' => { 'type' => 'integer' },
          'domain' => { 'type' => 'string' }
        },
        'required' => %w[project_id namespace_id root_namespace_id]
      }
    end
  end
end