diff --git a/rtex/__init__.py b/rtex/__init__.py index 81f0fde..b1a19e3 100644 --- a/rtex/__init__.py +++ b/rtex/__init__.py @@ -1 +1 @@ -__version__ = "0.0.4" +__version__ = "0.0.5" diff --git a/rtex/models.py b/rtex/models.py index a3f91d8..06b61e8 100644 --- a/rtex/models.py +++ b/rtex/models.py @@ -1,6 +1,6 @@ from typing import Annotated, Literal, Optional, Union -from pydantic import BaseModel, Field, conint +from pydantic import BaseModel, Field, RootModel, conint RenderFormat = Literal["png", "jpg", "pdf"] RenderQuality = Annotated[int, conint(gt=0, le=100)] @@ -26,8 +26,8 @@ class CreateLaTeXDocumentErrorResponse(BaseModel): description: str -class CreateLaTeXDocumentResponse(BaseModel): - __root__: Union[ +class CreateLaTeXDocumentResponse(RootModel): + root: Union[ CreateLaTeXDocumentSuccessResponse, CreateLaTeXDocumentErrorResponse, ] = Field(discriminator="status")