Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

feat(api): add provider to asset and to asset scan #726

Merged
merged 2 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions api/models/models.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,11 @@ components:
type: integer
summary:
$ref: '#/components/schemas/ScanFindingsSummary'
providers:
type: array
description: List of providers which discover the asset.
items:
$ref: '#/components/schemas/ProviderRelationship'

AssetRelationship:
type: object
Expand Down Expand Up @@ -2097,6 +2102,12 @@ components:
summary:
$ref: '#/components/schemas/ScanFindingsSummary'
readOnly: true
providers:
type: array
description: List of providers which discover the asset.
items:
$ref: '#/components/schemas/ProviderRelationship'
readOnly: true
required: ['id']

AssetExists:
Expand Down Expand Up @@ -2362,6 +2373,9 @@ components:
$ref: '#/components/schemas/AssetScanStats'
summary:
$ref: '#/components/schemas/ScanFindingsSummary'
provider:
$ref: "#/components/schemas/ProviderRelationship"
description: Provider responsible for picking up and running the asset scan.
- $ref: '#/components/schemas/AssetScanTemplate'
# TODO(sambetts) Decide if we want the validation here by having
# separate schemas for GET, POST and PATCH.
Expand Down
Loading