Skip to content

Commit aa107cc

Browse files
Remove unused ConvertToMarkdownResponse class
Assisted-by: Codex
1 parent d5a8f13 commit aa107cc

2 files changed

Lines changed: 0 additions & 46 deletions

File tree

src/pdfrest/models/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from .public import (
2-
ConvertToMarkdownResponse,
32
ExtractTextResponse,
43
PdfRestDeletionResponse,
54
PdfRestErrorResponse,
@@ -14,7 +13,6 @@
1413
)
1514

1615
__all__ = [
17-
"ConvertToMarkdownResponse",
1816
"ExtractTextResponse",
1917
"PdfRestDeletionResponse",
2018
"PdfRestErrorResponse",

src/pdfrest/models/public.py

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from typing_extensions import override
2121

2222
__all__ = (
23-
"ConvertToMarkdownResponse",
2423
"ExtractTextResponse",
2524
"PdfRestDeletionResponse",
2625
"PdfRestErrorResponse",
@@ -485,49 +484,6 @@ class ExtractTextResponse(BaseModel):
485484
] = None
486485

487486

488-
class ConvertToMarkdownResponse(BaseModel):
489-
"""Response returned by the markdown conversion tool."""
490-
491-
model_config = ConfigDict(extra="allow")
492-
493-
markdown: Annotated[
494-
str | None,
495-
Field(
496-
description="Inline markdown content when output_type is json.",
497-
default=None,
498-
),
499-
] = None
500-
input_id: Annotated[
501-
PdfRestFileID,
502-
Field(
503-
validation_alias=AliasChoices("input_id", "inputId"),
504-
description="The id of the input file.",
505-
),
506-
]
507-
output_url: Annotated[
508-
HttpUrl | None,
509-
Field(
510-
alias="outputUrl",
511-
validation_alias=AliasChoices("output_url", "outputUrl"),
512-
description="Download URL for file output.",
513-
default=None,
514-
),
515-
] = None
516-
output_id: Annotated[
517-
PdfRestFileID | None,
518-
Field(
519-
alias="outputId",
520-
validation_alias=AliasChoices("output_id", "outputId"),
521-
description="The id of the generated output when output_type is file.",
522-
default=None,
523-
),
524-
] = None
525-
warning: Annotated[
526-
str | None,
527-
Field(description="A warning that was generated during markdown conversion."),
528-
] = None
529-
530-
531487
class PdfRestInfoResponse(BaseModel):
532488
"""A response containing the output from the /info route."""
533489

0 commit comments

Comments
 (0)