Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating from AnyHttpUrl to str. #51

Merged
merged 1 commit into from
May 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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