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:
Greg Sweeney
2024-08-20 13:10:56 -04:00
committed by GitHub
parent 70037b7459
commit 556ec31ca2
53 changed files with 1018 additions and 982 deletions

View File

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