fix
This commit is contained in:
@@ -18,7 +18,7 @@ class TextOverlayData(BaseModel):
|
||||
y: float
|
||||
width: float
|
||||
height: float
|
||||
fontSize: float
|
||||
fontSize: float = Field(..., gt=0)
|
||||
fontFamily: str
|
||||
color: str
|
||||
|
||||
@@ -59,7 +59,7 @@ class FreeTextData(BaseModel):
|
||||
width: float
|
||||
height: float
|
||||
text: str
|
||||
fontSize: float = 12.0
|
||||
fontSize: float = Field(12.0, gt=0)
|
||||
color: str = "#000000"
|
||||
|
||||
class StickyNoteData(BaseModel):
|
||||
@@ -83,49 +83,49 @@ class PageRotationData(BaseModel):
|
||||
class TextOverlayOperation(BaseModel):
|
||||
id: str
|
||||
type: Literal["text_overlay"]
|
||||
pageIndex: int
|
||||
pageIndex: int = Field(..., ge=0)
|
||||
data: TextOverlayData
|
||||
|
||||
class RedactionOperation(BaseModel):
|
||||
id: str
|
||||
type: Literal["redaction"]
|
||||
pageIndex: int
|
||||
pageIndex: int = Field(..., ge=0)
|
||||
data: RedactionData
|
||||
|
||||
class ImageOverlayOperation(BaseModel):
|
||||
id: str
|
||||
type: Literal["image_overlay"]
|
||||
pageIndex: int
|
||||
pageIndex: int = Field(..., ge=0)
|
||||
data: ImageOverlayData
|
||||
|
||||
class HighlightOperation(BaseModel):
|
||||
id: str
|
||||
type: Literal["highlight"]
|
||||
pageIndex: int
|
||||
pageIndex: int = Field(..., ge=0)
|
||||
data: HighlightData
|
||||
|
||||
class FreeTextOperation(BaseModel):
|
||||
id: str
|
||||
type: Literal["free_text"]
|
||||
pageIndex: int
|
||||
pageIndex: int = Field(..., ge=0)
|
||||
data: FreeTextData
|
||||
|
||||
class CommentOperation(BaseModel):
|
||||
id: str
|
||||
type: Literal["comment"]
|
||||
pageIndex: int
|
||||
pageIndex: int = Field(..., ge=0)
|
||||
data: StickyNoteData
|
||||
|
||||
class FreehandOperation(BaseModel):
|
||||
id: str
|
||||
type: Literal["freehand"]
|
||||
pageIndex: int
|
||||
pageIndex: int = Field(..., ge=0)
|
||||
data: FreehandData
|
||||
|
||||
class PageRotationOperation(BaseModel):
|
||||
id: str
|
||||
type: Literal["page_rotation"]
|
||||
pageIndex: int
|
||||
pageIndex: int = Field(..., ge=0)
|
||||
data: PageRotationData
|
||||
|
||||
EditOperation = Annotated[
|
||||
|
||||
Reference in New Issue
Block a user