* towards proper class names Signed-off-by: Jess Frazelle <github@jessfraz.com> * mypy Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * I have generated the latest API! --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
24 lines
434 B
Python
24 lines
434 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,
|
|
]
|
|
]
|