refactor: Update logs field type in ResultDataResponse schema

Update the logs field type in the ResultDataResponse schema of schemas.py to use a single Log object instead of a list of Log objects. This change aligns the schema with the actual data structure and improves consistency throughout the codebase.
This commit is contained in:
ogabrielluiz 2024-06-12 17:35:46 -03:00
commit 9716a29911

View file

@ -245,7 +245,7 @@ class VerticesOrderResponse(BaseModel):
class ResultDataResponse(BaseModel):
results: Optional[Any] = Field(default_factory=dict)
logs: dict[str, list[Log]] = Field(default_factory=dict)
logs: dict[str, Log] = Field(default_factory=dict)
message: Optional[Any] = Field(default_factory=dict)
artifacts: Optional[Any] = Field(default_factory=dict)
timedelta: Optional[float] = None