Class: PackageMetadata::IngestedAdvisoryEvent

Inherits:
Gitlab::EventStore::Event show all
Defined in:
app/events/package_metadata/ingested_advisory_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
# File 'app/events/package_metadata/ingested_advisory_event.rb', line 5

def schema
  {
    'type' => 'object',
    'properties' => {
      'advisory_id' => { 'type' => 'integer' }
    },
    'required' => %w[advisory_id]
  }
end