Update api spec (#391)
* YOYO NEW API SPEC! * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
committed by
GitHub
parent
0ff7b17ce8
commit
ca39f6266a
23
kittycad/models/output_format2d.py
Normal file
23
kittycad/models/output_format2d.py
Normal file
@ -0,0 +1,23 @@
|
||||
from typing import Literal, Union
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field, RootModel
|
||||
from typing_extensions import Annotated
|
||||
|
||||
|
||||
class DxfData(BaseModel):
|
||||
"""Export storage."""
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class OptionDxf(BaseModel):
|
||||
"""AutoCAD drawing interchange format."""
|
||||
|
||||
storage: DxfData
|
||||
|
||||
type: Literal["dxf"] = "dxf"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
OutputFormat2d = RootModel[Annotated[Union[OptionDxf,], Field(discriminator="type")]]
|
Reference in New Issue
Block a user