Changed g to grams in API docs for clarity
This commit is contained in:
@@ -42,12 +42,12 @@ class SpoolParameters(BaseModel):
|
|||||||
)
|
)
|
||||||
initial_weight: Optional[float] = Field(
|
initial_weight: Optional[float] = Field(
|
||||||
ge=0,
|
ge=0,
|
||||||
description="The initial total weight of the filament and spool, in g. (gross weight)",
|
description="The initial total weight of the filament and spool, in grams. (gross weight)",
|
||||||
example=200,
|
example=200,
|
||||||
)
|
)
|
||||||
empty_weight: Optional[float] = Field(
|
empty_weight: Optional[float] = Field(
|
||||||
ge=0,
|
ge=0,
|
||||||
description="The weight of an empty spool, in g. (tare weight)",
|
description="The weight of an empty spool, in grams. (tare weight)",
|
||||||
example=200,
|
example=200,
|
||||||
)
|
)
|
||||||
remaining_weight: Optional[float] = Field(
|
remaining_weight: Optional[float] = Field(
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class VendorParameters(BaseModel):
|
|||||||
)
|
)
|
||||||
empty_spool_weight: Optional[float] = Field(
|
empty_spool_weight: Optional[float] = Field(
|
||||||
ge=0,
|
ge=0,
|
||||||
description="The weight of an empty spool, in g.",
|
description="The weight of an empty spool, in grams.",
|
||||||
example=200,
|
example=200,
|
||||||
)
|
)
|
||||||
extra: Optional[dict[str, str]] = Field(
|
extra: Optional[dict[str, str]] = Field(
|
||||||
|
|||||||
Reference in New Issue
Block a user