Fix risks encoding

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-11-23 22:28:29 +01:00
parent 112c793328
commit c9e1fd54a5
3 changed files with 27 additions and 15 deletions

View File

@@ -457,9 +457,11 @@ components:
$ref: "#/components/schemas/GID"
description: Organization ID
snapshot_id:
type:
- string
- "null"
anyOf:
- type: string
$ref: "#/components/schemas/GID"
- type: "null"
description: No snapshot
description: Snapshot ID
name:
type: string
@@ -497,10 +499,11 @@ components:
type: string
description: Risk note
owner_id:
type:
- string
- "null"
description: Owner ID
anyOf:
- type: string
$ref: "#/components/schemas/GID"
- type: "null"
description: No owner
created_at:
type: string
format: date-time