Changed g to grams in API docs for clarity

This commit is contained in:
Matt Gerega
2024-04-08 17:40:22 -04:00
parent 23cfb42ba8
commit dad446621f
2 changed files with 3 additions and 3 deletions

View File

@@ -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(

View File

@@ -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(