diff options
Diffstat (limited to 'app/events/project_authorizations/authorizations_added_event.rb')
-rw-r--r-- | app/events/project_authorizations/authorizations_added_event.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/events/project_authorizations/authorizations_added_event.rb b/app/events/project_authorizations/authorizations_added_event.rb new file mode 100644 index 00000000000..521a862218d --- /dev/null +++ b/app/events/project_authorizations/authorizations_added_event.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module ProjectAuthorizations + class AuthorizationsAddedEvent < ::Gitlab::EventStore::Event + def schema + { + 'type' => 'object', + 'required' => %w[project_id user_ids], + 'properties' => { + 'project_id' => { 'type' => 'integer' }, + 'user_ids' => { 'type' => 'array' } + } + } + end + end +end |