Files
kittycad.py/kittycad/models/batch_response.py
Jess Frazelle 2b44cdfb96 updates
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2024-07-28 15:21:51 -07:00

25 lines
435 B
Python

from typing import Union
from pydantic import BaseModel, ConfigDict, RootModel
class response(BaseModel):
"""Response to the modeling command."""
model_config = ConfigDict(protected_namespaces=())
class errors(BaseModel):
"""Errors that occurred during the modeling command."""
model_config = ConfigDict(protected_namespaces=())
BatchResponse = RootModel[
Union[
response,
errors,
]
]