Commit 824ef2e4 authored by James Fargher's avatar James Fargher

Merge branch '210327-add-vendor-to-occurrences-rest-api' into 'master'

Add vendor to scanner entity in Vulnerability Findings API

See merge request gitlab-org/gitlab!36184
parents 54d8434a 11753075
......@@ -3,4 +3,5 @@
class Vulnerabilities::ScannerEntity < Grape::Entity
expose :external_id
expose :name
expose :vendor
end
---
title: Expose Vendor in Scanner in Vulnerability Findings API
merge_request: 36184
author:
type: added
......@@ -13,7 +13,7 @@ RSpec.describe Vulnerabilities::ScannerEntity do
subject { entity.as_json }
it 'contains required fields' do
expect(subject).to include(:name, :external_id)
expect(subject).to include(:name, :external_id, :vendor)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment