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:
Gabriel Luiz Freitas Almeida 2024-06-23 12:35:57 -03:00
commit e2b56dd125

View file

@ -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 = ""