feat: Update PlaygroundPayload componentCount field to be nullable
The `PlaygroundPayload` class in the `telemetry/schema.py` module has been updated to make the `componentCount` field nullable by setting its default value to `None`. This change allows for more flexibility when handling the `componentCount` data in the telemetry service.
This commit is contained in:
parent
b5a0a303ba
commit
e2b56dd125
1 changed files with 1 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
|||
from os import error
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
|
|
@ -25,7 +24,7 @@ class VersionPayload(BaseModel):
|
|||
|
||||
class PlaygroundPayload(BaseModel):
|
||||
seconds: int
|
||||
componentCount: int
|
||||
componentCount: int | None = None
|
||||
success: bool
|
||||
errorMessage: str = ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue