Skip to content

Commit

Permalink
Updating from AnyHttpUrl to str. (#51)
Browse files Browse the repository at this point in the history
Updating from AnyHttpUrl to str.

Co-authored-by: Mark <[email protected]>
  • Loading branch information
THOR300 and Mark authored May 22, 2023
1 parent 7420545 commit cd93e95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/navigator_data_ingest/base/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Callable,
)

from pydantic import AnyHttpUrl, BaseModel
from pydantic import BaseModel

CONTENT_TYPE_PDF = "application/pdf"
CONTENT_TYPE_DOCX = (
Expand Down Expand Up @@ -79,8 +79,8 @@ class Document(BaseModel):
import_id: str # Unique source derived ID
slug: str # Unique identifier created by backend
publication_ts: datetime
source_url: Optional[AnyHttpUrl] # Original source URL
download_url: Optional[AnyHttpUrl] # Cached document URL
source_url: Optional[str] # Original source URL
download_url: Optional[str] # Cached document URL

type: str
source: str
Expand Down Expand Up @@ -143,7 +143,7 @@ class DocumentParserInput(BaseModel):
document_id: str
document_name: str
document_description: str
document_source_url: Optional[AnyHttpUrl]
document_source_url: Optional[str]
document_cdn_object: Optional[str] = None
document_content_type: Optional[str] = None
document_md5_sum: Optional[str] = None
Expand Down

0 comments on commit cd93e95

Please sign in to comment.