Update user properties to remove nullable types

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga
2025-04-16 16:10:18 +03:00
parent 446ad0e9de
commit cab9b4caf4
2 changed files with 3 additions and 6 deletions

View File

@@ -1886,17 +1886,14 @@ components:
properties:
id:
type: string
nullable: true
description: "UserID is the ID of the user that initiated the event (can be empty as not every event is user-initiated)."
example: "google-oauth2|123456789012345678901"
email:
type: string
nullable: true
description: "Email of the user who initiated the event (if any)."
example: "alice@netbird.io"
name:
type: string
nullable: true
description: "Name of the user who initiated the event (if any)."
example: "Alice Smith"
required:

View File

@@ -920,13 +920,13 @@ type NetworkTrafficSubEvent struct {
// NetworkTrafficUser defines model for NetworkTrafficUser.
type NetworkTrafficUser struct {
// Email Email of the user who initiated the event (if any).
Email *string `json:"email"`
Email string `json:"email"`
// Id UserID is the ID of the user that initiated the event (can be empty as not every event is user-initiated).
Id *string `json:"id"`
Id string `json:"id"`
// Name Name of the user who initiated the event (if any).
Name *string `json:"name"`
Name string `json:"name"`
}
// OSVersionCheck Posture check for the version of operating system