mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
feat: add response models for endpoints returning untyped objects
This commit is contained in:
24 files changed
+1192
-53
No files matched your search
@@ -161,3 +161,11 @@ class AutoIdlePC(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
json_schema_extra={"example": {"platform": "c7200", "image": "/path/to/c7200_image.bin", "ram": 256}}
|
||||
)
|
||||
|
||||
|
||||
class IdlePC(BaseModel):
|
||||
"""
|
||||
Result of an Idle-PC computation.
|
||||
"""
|
||||
|
||||
idlepc: Optional[str] = Field(None, description="Idle-PC value, null when none was found")
|
||||
Reference in new issue
Block a user