Use default values for non-required properties if a default is specified (#254)
* use default values for non-required properties if a default is specified * generate client * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
@ -8,10 +7,10 @@ from ..models.point3d import Point3d
|
||||
class LinearTransform(BaseModel):
|
||||
"""Ways to transform each solid being replicated in a repeating pattern."""
|
||||
|
||||
replicate: Optional[bool] = None
|
||||
replicate: bool = True
|
||||
|
||||
scale: Optional[Point3d] = None
|
||||
scale: Point3d = {"x": 1.0, "y": 1.0, "z": 1.0}
|
||||
|
||||
translate: Optional[Point3d] = None
|
||||
translate: Point3d = {"x": 0.0, "y": 0.0, "z": 0.0}
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
Reference in New Issue
Block a user