@@ -59,7 +59,7 @@ class FilamentParameters(BaseModel):
|
|||||||
description="The weight of the filament in a full spool, in grams. (net weight)",
|
description="The weight of the filament in a full spool, in grams. (net weight)",
|
||||||
examples=[1000],
|
examples=[1000],
|
||||||
)
|
)
|
||||||
spool_weight: Optional[float] = Field(None, gt=0, description="The empty spool weight, in grams.", examples=[140])
|
spool_weight: Optional[float] = Field(None, ge=0, description="The empty spool weight, in grams.", examples=[140])
|
||||||
article_number: Optional[str] = Field(
|
article_number: Optional[str] = Field(
|
||||||
None,
|
None,
|
||||||
max_length=64,
|
max_length=64,
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ class Filament(BaseModel):
|
|||||||
description="The weight of the filament in a full spool, in grams.",
|
description="The weight of the filament in a full spool, in grams.",
|
||||||
examples=[1000],
|
examples=[1000],
|
||||||
)
|
)
|
||||||
spool_weight: Optional[float] = Field(None, gt=0, description="The empty spool weight, in grams.", examples=[140])
|
spool_weight: Optional[float] = Field(None, ge=0, description="The empty spool weight, in grams.", examples=[140])
|
||||||
article_number: Optional[str] = Field(
|
article_number: Optional[str] = Field(
|
||||||
None,
|
None,
|
||||||
max_length=64,
|
max_length=64,
|
||||||
|
|||||||
Reference in New Issue
Block a user