Skip to content

Commit

Permalink
Fix ID field type (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Nov 5, 2023
1 parent 40a1f93 commit 8b63594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schemas/data/processes.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"description": "Process",
"properties": {
"id": {
"type": "string",
"type": "number",
"description": "ID"
},
"name": {
Expand Down
2 changes: 1 addition & 1 deletion systembridgemodels/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Process(BaseModel):
class Config:
extra = Extra.allow

id: str = Field(..., description="ID")
id: float = Field(..., description="ID")
name: str = Field(..., description="Name")
cpu_usage: Optional[float] = Field(None, description="CPU usage percentage")
created: Optional[float] = Field(None, description="Created time (epoch)")
Expand Down

0 comments on commit 8b63594

Please sign in to comment.