Bases: BaseModel
Represents a Physical Quantity with a value and a unit.
PARAMETER |
DESCRIPTION |
value
|
The value of the quantity.
TYPE:
Decimal
|
unit
|
The unit of the quantity.
TYPE:
str
|
Source code in werk24/models/v2/models.py
| class Quantity(BaseModel):
"""
Represents a Physical Quantity with a value and a unit.
"""
value: Decimal = Field(
...,
description="The value of the quantity.",
examples=[Decimal("10.5")],
)
unit: str = Field(
...,
description="The unit of the quantity.",
examples=["mm"],
)
|