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,4 @@
|
||||
from typing import Literal, Optional, Union
|
||||
from typing import Literal, Union
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field, RootModel
|
||||
from typing_extensions import Annotated
|
||||
@ -50,7 +50,7 @@ class ply(BaseModel):
|
||||
class sldprt(BaseModel):
|
||||
"""SolidWorks part (SLDPRT) format."""
|
||||
|
||||
split_closed_faces: Optional[bool] = None
|
||||
split_closed_faces: bool = False
|
||||
|
||||
type: Literal["sldprt"] = "sldprt"
|
||||
|
||||
@ -60,7 +60,7 @@ class sldprt(BaseModel):
|
||||
class step(BaseModel):
|
||||
"""ISO 10303-21 (STEP) format."""
|
||||
|
||||
split_closed_faces: Optional[bool] = None
|
||||
split_closed_faces: bool = False
|
||||
|
||||
type: Literal["step"] = "step"
|
||||
|
||||
|
Reference in New Issue
Block a user